.NET Framework Class Library
DataContext Members

Represents the main entry point for the LINQ to SQL framework.

The DataContext type exposes the following members.

Constructors

  NameDescription
Public methodDataContextOverloaded. Initializes a new instance of the DataContext class.
Top
Methods

  NameDescription
Public methodCreateDatabaseCreates a database on the server.
Protected methodCreateMethodCallQuery<(Of <(TResult>)>)Infrastructure. Executes the table-valued database function associated with the specified CLR method.
Public methodDatabaseExistsDetermines whether the associated database can be opened.
Public methodDeleteDatabaseDeletes the associated database.
Public methodDisposeOverloaded. Releases all resources used by the DataContext.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExecuteCommandExecutes SQL commands directly on the database.
Protected methodExecuteDynamicDeleteCalled inside delete override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for delete operations.
Protected methodExecuteDynamicInsertCalled inside insert override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for insert operations.
Protected methodExecuteDynamicUpdateCalled inside update override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for update operations.
Protected methodExecuteMethodCallInfrastructure. Executes the stored database procedure or scalar function associated with the specified CLR method.
Public methodExecuteQueryOverloaded. Executes SQL queries directly on the database.
Protected methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetChangeSetProvides access to the modified objects tracked by DataContext.
Public methodGetCommandProvides information about SQL commands generated by LINQ to SQL.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTableOverloaded. Returns a collection of table objects.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRefreshOverloaded. Refreshes object state by using data in the database.
Public methodSubmitChangesOverloaded. 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 methodToStringReturns a String that represents the current Object. (Inherited from Object.)
Public methodTranslateOverloaded. Converts an existing IDataReader to objects.
Top
Properties

  NameDescription
Public propertyChangeConflictsReturns a collection of objects that caused concurrency conflicts when SubmitChanges was called.
Public propertyCommandTimeoutIncreases the time-out period for queries that would otherwise time out during the default time-out period.
Public propertyConnectionReturns the connection used by the framework.
Public propertyDeferredLoadingEnabledSpecifies whether to delay-load one-to-many or one-to-one relationships.
Public propertyLoadOptionsGets or sets the DataLoadOptions associated with this DataContext.
Public propertyLogSpecifies the destination to write the SQL query or command.
Public propertyMappingReturns the MetaModel on which the mapping is based.
Public propertyObjectTrackingEnabledInstructs the framework to track the original value and object identity for this DataContext.
Public propertyTransactionSets a local transaction for the .NET Framework to use to access the database.
Top
See Also

Reference

Tags :


Page view tracker