EntityDescriptor 類別

定義

對實體完成之修改 (由 DataServiceResponse 中傳回的作業所進行) 的說明。Description of modifications done to entities by operations returned in a DataServiceResponse.

public ref class EntityDescriptor sealed : System::Data::Services::Client::Descriptor
public sealed class EntityDescriptor : System.Data.Services.Client.Descriptor
type EntityDescriptor = class
    inherit Descriptor
Public NotInheritable Class EntityDescriptor
Inherits Descriptor
繼承
EntityDescriptor

備註

SaveChanges 方法傳回包含 DataServiceResponse 物件序列的 OperationResponse 物件,序列中的每一個物件都包含表示變更已保存之 EntityDescriptorLinkDescriptor 執行個體的序列。The SaveChanges method returns a DataServiceResponse object that contains a series of OperationResponse objects each of which contains a sequence of EntityDescriptor or LinkDescriptor instances that represent changes that were persisted.

如果作業成功,描述項的 State 屬性會設為不變更,而插入和更新作業的新值會根據合併設定來進行合併。For successful operations, the State property of the descriptor will be set to unchanged and the new values for insert and update operations will be merged according to the merge settings.

如果作業失敗,描述項的 State 會維持不變,與 SaveChanges 呼叫之前相同。For operations with errors, the State of the descriptor will remain the same as it was before SaveChanges was called.

如果作業期間出現錯誤且處理停止,State 仍會維持不變。If an error occurred and processing stopped during an operation, the State will remain unchanged.

屬性

EditLink

取得或設定修改實體的 URI。Gets or sets the URI that modifies the entity.

EditStreamUri

取得或設定修改實體二進位屬性資料的 URI。Gets or sets the URI that modifies the binary property data of the entity.

Entity

取得包含更新資料的實體。Gets the entity that contains the update data.

ETag

取得 eTag 值,表示自上次呼叫 SaveChanges() 後,用於更新的資料狀態。Gets an eTag value that indicates the state of data targeted for update since the last call to SaveChanges().

Identity

取得或設定實體識別值的 URI。Gets or sets the URI that is the identity value of the entity.

ParentForInsert

取得與實體相關的父實體。Gets the parent entity that is related to the entity.

ParentPropertyForInsert

取得實體的屬性名稱,這是導覽屬性並連結到父實體。Gets the name of the property of the entity that is a navigation property and links to the parent entity.

ReadStreamUri

取得或設定存取實體之二進位屬性資料的 URI。Gets or sets the URI that accesses the binary property data of the entity.

SelfLink

取得或設定用於傳回實體資源的 URI。Gets or sets the URI that is used to return the entity resource.

ServerTypeName

取得或設定資料來源中實體所對應的型別名稱。Gets or sets the name of the type in the data source to which the entity is mapped.

State

在衍生類別中覆寫時,取得建構此執行個體時的物件狀態。When overridden in a derived class, gets the state of the object at the time this instance was constructed.

(繼承來源 Descriptor)
StreamETag

取得與媒體連結項目實體相關聯之媒體資源的 eTag。Gets the eTag for the media resource associated with an entity that is a media link entry.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於