System.Data.Linq Namespace

System.Data.Linq 命名空间包含支持与 LINQ to SQL 应用程序中的关系数据库进行交互的类。 The System.Data.Linq namespace contains classes that support interaction with relational databases in LINQ to SQL applications.

Binary

表示不可变的二进制数据块。Represents an immutable block of binary data.

ChangeConflictCollection

返回在并发冲突中涉及的对象集合。Returns a collection of objects involved in concurrency conflicts.

ChangeConflictException

客户端最后一次读取数据库值后,由于这些值已被更新而导致更新失败时引发。Thrown when an update fails because database values have been updated since the client last read them.

ChangeSet

提供保存更改的容器。Provides a container to hold changes.

CompiledQuery

用于编译查询,并对查询进行缓存以供重复使用。Provides for compilation and caching of queries for reuse.

DataContext

表示 LINQ to SQL 框架的主入口点。Represents the main entry point for the LINQ to SQL framework.

DataLoadOptions

提供相关数据的即时加载和筛选。Provides for immediate loading and filtering of related data.

DBConvert

在内部使用以将一种类型转换为其他类型。Used internally to convert one type to another.

DuplicateKeyException

当尝试使用正在使用的键将对象添加到标识缓存时引发。Thrown when an attempt is made to add an object to the identity cache by using a key that is already being used.

EntitySet<TEntity>

为 LINQ to SQL 应用程序中的一对多和一对一关系中的集合提供延迟加载和关系维护。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.

ForeignKeyReferenceAlreadyHasValueException

表示在已经加载实体的情况下尝试更改外键时发生的错误。Represents errors that occur when an attempt is made to change a foreign key when the entity is already loaded.

MemberChangeConflict

表示以下情况:由于自客户端上次读取成员值后这些值已被更新,因此尝试的更新失败。Represents a situation in which an attempted update fails because member values have been updated since the client last read them.

ObjectChangeConflict

表示对一个或多个开放式并发冲突的更新尝试。Represents an update attempt with one or more optimistic concurrency conflicts.

Table<TEntity>

表示基础数据库中的特定类型的表。Represents a table for a particular type in the underlying database.

结构

EntityRef<TEntity>

为 LINQ to SQL 应用程序中的一对多关系的单一实例方提供延迟加载和关系维护。Provides for deferred loading and relationship maintenance for the singleton side of a one-to-many relationship in a LINQ to SQL application.

ModifiedMemberInfo

具有已在 LINQ to SQL 应用程序中修改的成员的值。Holds values of members that have been modified in LINQ to SQL applications.

接口

IExecuteResult

提供对执行查询的返回值或结果的访问。Provides access to the return value or results of executing a query.

IFunctionResult

提供对函数的返回值的访问。Provides access to the return value of a function.

IMultipleResults

表示映射函数或对可变返回序列的查询的结果。Represents the results of mapped functions or queries with variable return sequences.

ISingleResult<T>

表示具有单个返回序列的映射函数的结果。Represents the result of a mapped function that has a single return sequence.

ITable

用于弱类型查询方案。Used for weakly typed query scenarios.

ITable<TEntity>

表示基础数据库中的特定类型的表。Represents a table for a particular type in the underlying database.

枚举

ChangeAction

描述在将更改提交到数据库时实体将具有的更改的类型。Describes the type of change the entity will undergo when changes are submitted to the database.

ConflictMode

指定应何时报告并发冲突。Specifies when concurrency conflicts should be reported.

RefreshMode

定义 Refresh 方法如何处理开放式并发冲突。Defines how the Refresh method handles optimistic concurrency conflicts.

注解

LINQ to SQLLINQ to SQL 是一种技术,提供用于管理关系数据作为对象的运行时基础结构。is a technology that provides a run-time infrastructure for managing relational data as objects. 有关详细信息,请参阅 LINQ to SQLFor more information, see LINQ to SQL.