DataContext represents LINQ to SQL O / R map - LINQ

Q.  Which of the following objects represents a LINQ to SQL O / R map?
- Published on 31 Aug 15

a. DataSet
b. XElement
c. ObjectContext
d. DataContext

ANSWER: DataContext
 
A DataContext object represents a LINQ to SQL O / R map. ORM stands for Object-Relational Mapping. It is also called as O / R mapping.
DataContext class is used to connect with database, retrieve objects from it, and submit changes back to it.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)