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

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
DataContext Members

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

The DataContext type exposes the following members.

  NameDescription
Public methodDataContextOverloaded. Initializes a new instance of the DataContext class.
Top
  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 methodEquals Determines 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 methodFinalize Allows 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 methodGetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodGetTableOverloaded. Returns a collection of table objects.
Public methodGetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseClone Creates 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 methodToString Returns a String that represents the current Object. (Inherited from Object.)
Public methodTranslateOverloaded. Converts an existing IDataReader to objects.
Top
  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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker