Freigeben über


System.Data.Linq Namespace

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

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 Overview for Windows Phone.

Classes

  Class Description
Public class Binary Represents an immutable block of binary data.
Public class ChangeConflictCollection Returns a collection of objects involved in concurrency conflicts.
Public class ChangeConflictException Thrown when an update fails because database values have been updated since the client last read them.
Public class ChangeSet Provides a container to hold changes.
Public class CompiledQuery Provides for compilation and caching of queries for reuse.
Public class DataContext The data context is an object representing the database, a proxy, containing Table objects that represent the tables in the database.
Public class DataLoadOptions Provides for immediate loading and filtering of related data.
Public class DBConvert Infrastructure. Used internally to convert one type to another.
Public class DuplicateKeyException Thrown when an attempt is made to add an object to the identity cache by using a key that is already being used.
Public class EntitySet<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 class ForeignKeyReferenceAlreadyHasValueException Represents errors that occur when an attempt is made to change a foreign key when the entity is already loaded.
Public class MemberChangeConflict Represents a situation in which an attempted update fails because member values have been updated since the client last read them.
Public class ObjectChangeConflict Represents an update attempt with one or more optimistic concurrency conflicts.
Public class Table<TEntity> Represents a table for a particular type in the underlying database.

Structures

  Structure Description
Public structure EntityRef<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 structure Link<T> Used to enable deferred loading of individual properties (similar to EntityRef<TEntity>).
Public structure ModifiedMemberInfo Holds values of members that have been modified in LINQ to SQL applications.

Interfaces

  Interface Description
Public interface ITable Used for weakly typed query scenarios.
Public interface ITable<TEntity> Represents a table for a particular type in the underlying database.

Enumerations

  Enumeration Description
Public enumeration ChangeAction Describes the type of change the entity will undergo when changes are submitted to the database.
Public enumeration ConflictMode Specifies when concurrency conflicts should be reported.
Public enumeration RefreshMode Defines how the Refresh method handles optimistic concurrency conflicts.