DataContext class-associated with LINQ

Explain about DataContext class and how is it associated to LINQ?

E

Expert

Verified

After we add a LINQ to SQL Classes item to the project and open a O/R Designer, empty design surface symbolizes the empty DataContext class prepared to be configured. DataContext class is a LINQ to SQL class which acts as the channel between the SQL Server database and LINQ to SQL entity classes mapped to that database. Class contains a connection string information and methods for connecting to the database and manipulate the data in a database. It is configured with the connection information provided by initial item which is dragged onto a design surface.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.