Collapse the table of content
Expand the table of content

System.Data.Linq Namespace

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The System.Data.Linq namespace contains classes that support interaction with a local database in Windows Phone applications.

For information about using a local database in your Windows Phone application, see Local database for Windows Phone 8.

Public classBinaryRepresents an immutable block of binary data.
Public classChangeConflictCollectionReturns a collection of objects involved in concurrency conflicts.
Public classChangeConflictExceptionThrown when an update fails because database values have been updated since the client last read them.
Public classChangeSetProvides a container to hold changes.
Public classCompiledQueryProvides for compilation and caching of queries for reuse.
Public classDataContextThe data context is an object representing the database, a proxy, containing Table objects that represent the tables in the database.
Public classDataLoadOptionsProvides for immediate loading and filtering of related data.
Public classDBConvertInfrastructure. Used internally to convert one type to another.
Public classDuplicateKeyExceptionThrown when an attempt is made to add an object to the identity cache by using a key that is already being used.
Public classEntitySet<TEntity>Provides for deferred loading and relationship maintenance for the collection side of one-to-many and one-to-one relationships in a LINQ to SQL applications. 
Public classForeignKeyReferenceAlreadyHasValueExceptionRepresents errors that occur when an attempt is made to change a foreign key when the entity is already loaded.
Public classMemberChangeConflictRepresents a situation in which an attempted update fails because member values have been updated since the client last read them.
Public classObjectChangeConflictRepresents an update attempt with one or more optimistic concurrency conflicts.
Public classTable<TEntity>Represents a table for a particular type in the underlying database.

Public structureEntityRef<TEntity>Provides for deferred loading and relationship maintenance for the singleton side of a one-to-many relationship in a LINQ to SQL application.
Public structureLink<T>Used to enable deferred loading of individual properties (similar to EntityRef<TEntity>).
Public structureModifiedMemberInfoHolds values of members that have been modified in LINQ to SQL applications.

Public interfaceITableUsed for weakly typed query scenarios.
Public interfaceITable<TEntity>Represents a table for a particular type in the underlying database.

Public enumerationChangeActionDescribes the type of change the entity will undergo when changes are submitted to the database.
Public enumerationConflictModeSpecifies when concurrency conflicts should be reported.
Public enumerationRefreshModeDefines how the Refresh method handles optimistic concurrency conflicts.

© 2016 Microsoft