what is the datacontext class and how is it


What is the DataContext class and how is it related to LINQ?

After you add a LINQ to SQL Classes item to a project and open the O/R Designer, the empty design surface shows an empty DataContext class ready to be configured. The DataContext class is a LINQ to SQL class that acts as a conduit among a SQL Server database and the LINQ to SQL entity classes mapped to that database. This class having the connection string information and the methods for connecting to a database and manipulating the data in the database. It is configured with connection information given by the first item that is dragged onto the design surface.

 

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: what is the datacontext class and how is it
Reference No:- TGS0311152

Expected delivery within 24 Hours