| Devart.Data.Linq Namespace : DataContext Class |
Represents the main entry point for the LINQ to SQL framework.
For a list of all members of this type, see DataContext members.
Devart.Data.Linq.DataContext
[Visual Basic]
Public Class DataContext [C#]
public class DataContext The DataContext is the source of all entities mapped over a database connection. It tracks changes that you made to all retrieved entities and maintains an "identity cache" that guarantees that entities retrieved more than one time are represented by using the same object instance. In general, a DataContext instance is designed to last for one "unit of work" however your application defines that term. A DataContext is lightweight and is not expensive to create. A typical LINQ to SQL application creates DataContext instances at method scope or as a member of short-lived classes that represent a logical set of related database operations.
Namespace: Devart.Data.Linq
Platforms:Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7
Assembly: Devart.Data.Linq (in Devart.Data.Linq.dll)
DataContext Members | Devart.Data.Linq Namespace
© 2010 - 2013 Devart. All Rights Reserved.