LinqConnect Documentation
Devart.Data.Linq Namespace / DataContext Class
Properties Methods

In This Topic
    DataContext Class Members
    In This Topic

    The following tables list the members exposed by DataContext.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded. Initializes a new instance of the DataContext class.  
    Top
    Public Properties
     NameDescription
    Public PropertyReturns a collection of objects that caused concurrency conflicts when SubmitChanges was called.  
    Public PropertyIncreases the time-out period for queries that would otherwise time out during the default time-out period.  
    Public PropertyReturns the connection used by the framework.  
    Public PropertyInstructs the framework not to delay-load one-to-many or one-to-one relationships.  
    Public PropertyDetermines how context's entity cache works.  
    Public PropertyGets the collection of errors, occurred while performing the SubmitChanges operation and not processed in the OnSubmitError event.  
    Public PropertyIndicates whether there are unprocessed errors, occurred during SubmitChanges operation.  
    Public PropertyGets or sets the DataLoadOptions associated with this DataContext.  
    Public PropertyPrints the SQL query or command to the TextReader.  
    Public PropertyReturns the MetaModel on which the mapping is based.  
    Public PropertyGets or sets the max number of queries, united in the batch for speeding up the SubmitChanges operation.  
    Public PropertyGets or sets the maximal number of opened connections.  
    Public PropertyInstructs the framework to track the original value and object identity for this DataContext.  
    Public PropertySets a local transaction for the .NET Framework to use to access the database.  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Creates and executes script that creates database tables with their constraints, indexes, and foreign keys.  
    Public MethodReturns true if an attempt to open the database by using the connection in the DataContext succeeds.  
    Public MethodOverloaded. Creates and executes script that deletes database tables with their constraints, indexes, and foreign keys.  
    Public MethodReleases all resources used by the DataContext.  
    Public MethodExecutes SQL commands directly on the database.  
    Public MethodOverloaded. Executes SQL queries directly on the database.  
    Public MethodProvides access to the modified objects tracked by DataContext.  
    Public MethodProvides information about SQL commands generated by LINQ to SQL.  
    Public MethodOverloaded. Returns a collection of table objects.  
    Public MethodExecutes SQL query against the database, with data fetching delayed until they will be accessed through the IQueryable interface.  
    Public MethodOverloaded. Refreshes object state by using data in the database.  
    Public MethodCancels all unsubmitted changes to the DataContext entities.  
    Public MethodOverloaded. Computes the set of modified objects to be inserted, updated, or deleted, and executes the appropriate commands to implement the changes to the database.  
    Public MethodOverloaded. Converts an existing IDataReader to objects.  
    Top
    See Also