Name | Description | |
---|---|---|
![]() | CreateDatabase | Overloaded. Creates and executes script that creates database tables with their constraints, indexes, and foreign keys. |
![]() | DatabaseExists | Returns true if an attempt to open the database by using the connection in the DataContext succeeds. |
![]() | DeleteDatabase | Overloaded. Creates and executes script that deletes database tables with their constraints, indexes, and foreign keys. |
![]() | Dispose | Releases all resources used by the DataContext. |
![]() | ExecuteCommand | Executes SQL commands directly on the database. |
![]() | ExecuteQuery | Overloaded. Executes SQL queries directly on the database. |
![]() | GetChangeSet | Provides access to the modified objects tracked by DataContext. |
![]() | GetCommand | Provides information about SQL commands generated by LINQ to SQL. |
![]() | GetTable | Overloaded. Returns a collection of table objects. |
![]() | Query<TResult> | Executes SQL query against the database, with data fetching delayed until they will be accessed through the IQueryable interface. |
![]() | Refresh | Overloaded. Refreshes object state by using data in the database. |
![]() | RejectChanges | Cancels all unsubmitted changes to the DataContext entities. |
![]() | 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. |
![]() | Translate | Overloaded. Converts an existing IDataReader to objects. |