Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
DataContext Class
 DataContext Members
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
.NET Framework Class Library
DataContext Members

Updated: November 2007

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

The DataContext type exposes the following members.

  NameDescription
DataContextOverloaded. Initializes a new instance of the DataContext class.
Top
  NameDescription
CreateDatabase Creates a database on the server.
CreateMethodCallQuery<(Of <(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.
DisposeOverloaded. 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.
ExecuteMethodCallInfrastructure. Executes the stored database procedure or scalar function associated with the specified CLR method.
ExecuteQueryOverloaded. Executes SQL queries directly on the database.
Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object 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.)
GetTableOverloaded. 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.)
RefreshOverloaded. Refreshes object state by using data in the database.
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.
ToString Returns a String that represents the current Object. (Inherited from Object.)
TranslateOverloaded. Converts an existing IDataReader to objects.
Top
  NameDescription
ChangeConflicts Returns a collection of objects that caused concurrency conflicts when SubmitChanges was called.
CommandTimeout Increases the time-out period for queries that would otherwise time out during the default time-out period.
Connection Returns the connection used by the framework.
DeferredLoadingEnabled Specifies whether to delay-load one-to-many or one-to-one relationships.
LoadOptions Gets or sets the DataLoadOptions associated with this DataContext.
Log Specifies the destination to write the SQL query or command.
Mapping Returns the MetaModel on which the mapping is based.
ObjectTrackingEnabled Instructs the framework to track the original value and object identity for this DataContext.
Transaction Sets a local transaction for the .NET Framework to use to access the database.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker