DataServiceContext.SaveChanges DataServiceContext.SaveChanges DataServiceContext.SaveChanges DataServiceContext.SaveChanges Method

定义

DataServiceContext 跟踪的更改保存到存储区。Saves the changes the DataServiceContext is tracking to storage.

重载

SaveChanges() SaveChanges() SaveChanges() SaveChanges()

DataServiceContext 跟踪的更改保存到存储区。Saves the changes that the DataServiceContext is tracking to storage.

SaveChanges(SaveChangesOptions) SaveChanges(SaveChangesOptions) SaveChanges(SaveChangesOptions) SaveChanges(SaveChangesOptions)

DataServiceContext 跟踪的更改保存到存储区。Saves the changes that the DataServiceContext is tracking to storage.

注解

一个 DataServiceResponse,其中包含调用 SaveChanges 产生的状态、标头和错误。A DataServiceResponse that contains status, headers, and errors that result from the call to SaveChanges.

SaveChanges() SaveChanges() SaveChanges() SaveChanges()

DataServiceContext 跟踪的更改保存到存储区。Saves the changes that the DataServiceContext is tracking to storage.

public:
 System::Data::Services::Client::DataServiceResponse ^ SaveChanges();
public System.Data.Services.Client.DataServiceResponse SaveChanges ();
member this.SaveChanges : unit -> System.Data.Services.Client.DataServiceResponse
Public Function SaveChanges () As DataServiceResponse

返回

一个 DataServiceResponse,其中包含调用 SaveChanges() 产生的状态、标头和错误。A DataServiceResponse that contains status, headers, and errors that result from the call to SaveChanges().

SaveChanges(SaveChangesOptions) SaveChanges(SaveChangesOptions) SaveChanges(SaveChangesOptions) SaveChanges(SaveChangesOptions)

DataServiceContext 跟踪的更改保存到存储区。Saves the changes that the DataServiceContext is tracking to storage.

public:
 System::Data::Services::Client::DataServiceResponse ^ SaveChanges(System::Data::Services::Client::SaveChangesOptions options);
public System.Data.Services.Client.DataServiceResponse SaveChanges (System.Data.Services.Client.SaveChangesOptions options);
member this.SaveChanges : System.Data.Services.Client.SaveChangesOptions -> System.Data.Services.Client.DataServiceResponse
Public Function SaveChanges (options As SaveChangesOptions) As DataServiceResponse

参数

options
SaveChangesOptions SaveChangesOptions SaveChangesOptions SaveChangesOptions

MergeOption 枚举成员,用于指定具体化选项。A member of the MergeOption enumeration that specifies the materialization option.

返回

一个 DataServiceResponse,其中包含调用 SaveChanges() 产生的状态、标头和错误。A DataServiceResponse that contains status, headers, and errors that result from the call to SaveChanges().

注解

按照以下顺序将操作发送到数据服务Operations are sent to the data service in the following order

  1. DeleteLink

  2. DeleteObject

  3. UpdateObject

  4. AddObject

  5. SetLinkAddLinkSetLink and AddLink

适用于