LinqConnect Documentation
Devart.Data.Linq Namespace / DataContext Class

In This Topic
DataContext Class Methods
In This Topic

For a list of all members of this type, see DataContext members.

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