共用方式為


儲存實體資料

當您透過 Entity Framework 或 WCF 資料服務建立、更新或刪除連接至資料庫的實體時,必須明確將變更存回資料庫。 下列主題說明如何在 Entity Framework 和 WCF 資料服務應用程式中儲存實體資料變更。

主題

描述

How to: Add, Modify, and Delete Objects (Entity Framework)

說明如何將實體資料的變更存回資料庫。

How to: Manage Data Concurrency in the Object Context (Entity Framework)

說明如何管理哪些資料將儲存至資料庫。

Walkthrough: Serialize Self-Tracking Entities (Entity Framework)

說明如何使用及儲存自我追蹤實體。

How to: Add, Modify, and Delete Entities (WCF Data Services)

說明如何透過資料服務存回實體資料的變更。

How to: Execute Asynchronous Data Service Queries (WCF Data Services)

說明如何透過資料服務以非同步方式儲存變更。

請參閱

其他資源

Saving Changes and Managing Concurrency (Entity Framework)

Updating the Data Service (WCF Data Services)