DataContext class

Explain about the DataContext class and also how it is related to the LINQ?

E

Expert

Verified

After adding a LINQ to SQL Classes item in a project and open the O/R Designer, empty design surface characterizes an empty DataContext class which is ready to be configured. DataContext class is a LINQ to SQL class that acts as a channel between a SQL Server database and the LINQ to SQL entity classes mapped to that database. This class consists of the connection string information and the method used for connecting to the database and manipulating data in the database. It is configured with the connection information offered by the first item which is dragged onto the design surface.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.