This documentation is archived and is not being maintained.
DataContext Methods
Visual Studio 2008
The DataContext type exposes the following members.
| Name | Description | |
|---|---|---|
|
CreateDatabase | Creates a database on the server. |
|
CreateMethodCallQuery<TResult> | Infrastructure. Executes the table-valued database function associated with the specified CLR method. |
|
DatabaseExists | Determines whether the associated database can be opened. |
|
DeleteDatabase | Deletes the associated database. |
|
Dispose | Overloaded. Releases all resources used by the DataContext. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
ExecuteCommand | Executes SQL commands directly on the database. |
|
ExecuteDynamicDelete | Called inside delete override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for delete operations. |
|
ExecuteDynamicInsert | Called inside insert override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for insert operations. |
|
ExecuteDynamicUpdate | Called inside update override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for update operations. |
|
ExecuteMethodCall | Infrastructure. Executes the stored database procedure or scalar function associated with the specified CLR method. |
|
ExecuteQuery | Overloaded. Executes SQL queries directly on the database. |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetChangeSet | Provides access to the modified objects tracked by DataContext. |
|
GetCommand | Provides information about SQL commands generated by LINQ to SQL. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetTable | Overloaded. Returns a collection of table objects. |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Refresh | Overloaded. Refreshes object state by using data in the database. |
|
SubmitChanges | Overloaded. Computes the set of modified objects to be inserted, updated, or deleted, and executes the appropriate commands to implement the changes to the database. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
Translate | Overloaded. Converts an existing IDataReader to objects. |
Show: