The System.Data.Linq namespace contains classes that support interaction with relational databases in LINQ to SQL applications.

类:

System_CAPS_pubclass


Binary

Represents an immutable block of binary data.

System_CAPS_pubclassChangeConflictCollection

Returns a collection of objects involved in concurrency conflicts.

System_CAPS_pubclassChangeConflictException

Thrown when an update fails because database values have been updated since the client last read them.

System_CAPS_pubclassChangeSet

Provides a container to hold changes.

System_CAPS_pubclassCompiledQuery

Provides for compilation and caching of queries for reuse.

System_CAPS_pubclassDataContext

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

System_CAPS_pubclassDataLoadOptions

Provides for immediate loading and filtering of related data.

System_CAPS_pubclassDBConvert

此 API 支持 产品 基础结构,不应从代码直接使用。      Used internally to convert one type to another.

System_CAPS_pubclassDuplicateKeyException

Thrown when an attempt is made to add an object to the identity cache by using a key that is already being used.

System_CAPS_pubclassEntitySet<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. 

System_CAPS_pubclassForeignKeyReferenceAlreadyHasValueException

Represents errors that occur when an attempt is made to change a foreign key when the entity is already loaded.

System_CAPS_pubclassMemberChangeConflict

Represents a situation in which an attempted update fails because member values have been updated since the client last read them.

System_CAPS_pubclassObjectChangeConflict

Represents an update attempt with one or more optimistic concurrency conflicts.

System_CAPS_pubclassTable<TEntity>

Represents a table for a particular type in the underlying database

结构:

System_CAPS_pubstructure


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.

System_CAPS_pubstructureLink<T>

Used to enable deferred loading of individual properties (similar to EntityRef<TEntity>).

System_CAPS_pubstructureModifiedMemberInfo

Holds values of members that have been modified in LINQ to SQL applications.

接口:


接口说明
System_CAPS_pubinterfaceIExecuteResult

Provides access to the return value or results of executing a query.

System_CAPS_pubinterfaceIFunctionResult

Provides access to the return value of a function.

System_CAPS_pubinterfaceIMultipleResults

Represents the results of mapped functions or queries with variable return sequences.

System_CAPS_pubinterfaceISingleResult<T>

Represents the result of a mapped function that has a single return sequence.

System_CAPS_pubinterfaceITable

Used for weakly typed query scenarios.

System_CAPS_pubinterfaceITable<TEntity>

Represents a table for a particular type in the underlying database.

枚举:


枚举说明
System_CAPS_pubenumChangeAction

Describes the type of change the entity will undergo when changes are submitted to the database.

System_CAPS_pubenumConflictMode

Specifies when concurrency conflicts should be reported.

System_CAPS_pubenumRefreshMode

Defines how the Refresh method handles optimistic concurrency conflicts.





备注:转自https://msdn.microsoft.com/zh-cn/library/system.data.linq.aspx