LinqConnect Documentation
Devart.Data.Linq Namespace / DataContext Class
Members

In This Topic
    DataContext Class
    In This Topic
    Represents the main entry point for the LINQ to SQL framework.
    Syntax
    'Declaration
     
    Public Class DataContext 
       Implements System.IDisposable 
    public class DataContext : System.IDisposable  
    Remarks
    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.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also