See Also

DataContext Class  | Devart.Data.Linq Namespace

See AlsoDevart.Data.LinqSend comments on this topic.

DataContext Class Members

Devart.Data.Linq Namespace : DataContext Class

DataContext overview

Public Constructors

Public Constructor DataContext ConstructorOverloaded. Initializes a new instance of the DataContext class.

Public Properties

Public Property ChangeConflictsReturns a collection of objects that caused concurrency conflicts when SubmitChanges was called.
Public Property CommandTimeoutIncreases the time-out period for queries that would otherwise time out during the default time-out period.
Public Property ConnectionReturns the connection used by the framework.
Public Property DeferredLoadingEnabledInstructs the framework not to delay-load one-to-many or one-to-one relationships.
Public Property EntityCachingMode 
Public Property ErrorsGets the collection of errors, occurred while performing the SubmitChanges operation and not processed in the OnSubmitError event.
Public Property HasErrorsIndicates whether there are unprocessed errors, occurred during SubmitChanges operation.
Public Property LoadOptionsGets or sets the DataLoadOptions associated with this DataContext.
Public Property LogPrints the SQL query or command to the TextReader.
Public Property MappingReturns the MetaModel on which the mapping is based.
Public Property MaxBatchSizeGets or sets the max number of queries, united in the batch for speeding up the SubmitChanges operation.
Public Property MaxUsedConnectionsGets or sets the maximal number of opened connections.
Public Property ObjectTrackingEnabledInstructs the framework to track the original value and object identity for this DataContext.
Public Property TransactionSets a local transaction for the .NET Framework to use to access the database.

Public Methods

Public Method CreateDatabaseOverloaded. Creates and executes script that creates database tables with their constraints, indexes, and foreign keys.
Public Method DatabaseExistsReturns true if an attempt to open the database by using the connection in the DataContext succeeds.
Public Method DeleteDatabaseOverloaded. Creates and executes script that deletes database tables with their constraints, indexes, and foreign keys.
Public Method DisposeReleases all resources used by the DataContext.
Public Method ExecuteCommandExecutes SQL commands directly on the database.
Public Method ExecuteQueryOverloaded. Executes SQL queries directly on the database.
Public Method GetChangeSetProvides access to the modified objects tracked by DataContext.
Public Method GetCommandProvides information about SQL commands generated by LINQ to SQL.
Public Method GetTableOverloaded. Returns a collection of table objects.
Public Method QueryOverloaded. Executes SQL query against the database, with data fetching delayed until they will be accessed through the IQueryable interface.
Public Method RefreshOverloaded.  
Public Method RejectChangesCancels all unsubmitted changes to the DataContext entities.
Public Method SubmitChangesOverloaded. 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 Method TranslateOverloaded. Converts an existing IDataReader to objects.

See Also

DataContext Class  | Devart.Data.Linq Namespace

 

 


© 2010 - 2013 Devart. All Rights Reserved.