DataContext Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The DataContext type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone CreateDatabase Creates a database.
Public methodSupported by Silverlight for Windows Phone DatabaseExists Determines whether the associated database can be opened.
Public methodSupported by Silverlight for Windows Phone DeleteDatabase Deletes the associated database.
Public methodSupported by Silverlight for Windows Phone Dispose() Releases all resources used by the DataContext.
Protected methodSupported by Silverlight for Windows Phone Dispose(Boolean) Releases resources used by the DataContext.
Public methodSupported by Silverlight for Windows Phone Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone ExecuteDynamicDelete Called inside delete override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for delete operations.
Protected methodSupported by Silverlight for Windows Phone ExecuteDynamicInsert Called inside insert override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for insert operations.
Protected methodSupported by Silverlight for Windows Phone ExecuteDynamicUpdate Called inside update override methods to redelegate to LINQ to SQL the task of generating and executing dynamic SQL for update operations.
Protected methodSupported by Silverlight for Windows Phone Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetChangeSet Provides access to the modified objects tracked by DataContext.
Public methodSupported by Silverlight for Windows Phone GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetTable(Type) Returns a collection of objects of a particular type, where the type is defined by the type parameter.
Public methodSupported by Silverlight for Windows Phone GetTable<TEntity>() Returns a collection of objects of a particular type, where the type is defined by the TEntity parameter.
Public methodSupported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone Refresh(RefreshMode, IEnumerable) Refreshes a collection of entity objects according to the specified mode.
Public methodSupported by Silverlight for Windows Phone Refresh(RefreshMode, Object) Refreshes an entity object according to the specified mode.
Public methodSupported by Silverlight for Windows Phone Refresh(RefreshMode, array<Object[]) Refreshes an array of entity objects according to the specified mode.
Public methodSupported by Silverlight for Windows Phone SubmitChanges() 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 methodSupported by Silverlight for Windows Phone SubmitChanges(ConflictMode) Sends changes that were made to retrieved objects to the underlying database, and specifies the action to be taken if the submission fails.
Public methodSupported by Silverlight for Windows Phone ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Extension Methods

  Name Description
Public Extension Method CreateDatabaseSchemaUpdater Creates a DatabaseSchemaUpdater object based on the specified data context. (Defined by Extensions.)

Top