System.Data.Linq 命名空間

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.

Link<T>

用於啟用個別屬性的延後載入 (類似 EntityRef<TEntity>)。Used to enable deferred loading of individual properties (similar to EntityRef<TEntity>).

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.