concept this point in category .net

appears as: this point
LINQ in Action

This is an excerpt from Manning's book LINQ in Action.

We have just provided you with an overview of LINQ. The big questions at this point are: Why do we want a tool like LINQ? What makes the previous tools inconvenient? Was LINQ created only to make working with programming languages, relational data, and XML at the same time more convenient?

To be safe, we can overwrite the values that the second user tried to change with the current values from the database. In that case, use RefreshMode.OverwriteCurrentValues. At this point, it would not be beneficial to submit the changes back to the database again, as there would be no difference between the current object and the values in the database. We would present the refreshed record to the user and have them make the appropriate changes again.

We’re almost done setting up our inheritance model. At this point, we need to identify which object type we want to load for each row in our table. For example, if we load a User with a UserType of A, we should get an instance of the AuthorUser instead of just the simple UserBase instance. To do so, we need to enhance our mappings. We could do this by adding more attributes to our class definition indicating the InheritanceMapping value. Since we’re making these modifications using the designer, let’s see how we can do it from there.