Share via


透過概念模型查詢資料

當您使用概念模型來描述資料庫中的資料時,可以透過物件查詢資料,而不需要在資料庫結構描述和物件模型之間來回轉譯。

您可以在 Entity Framework 和 WCF 資料服務應用程式中使用概念模型。 下列主題說明如何透過概念模型查詢資料。

主題

描述

How to: Execute a Query that Returns Entity Type Objects (Entity Framework)

說明如何使用 LINQ to Entities 取得實體資料。

How to: Navigate Relationships Using Navigation Properties (Entity Framework)

說明如何根據實體之間的關聯性傳回資料。

How to: Return a Specific Object Using its Key (Entity Framework)

說明如何依索引鍵傳回實體。

How to: Filter Data (Entity Framework)

說明如何篩選查詢結果。

Walkthrough: Retrieving Entity Types with a Stored Procedure (Entity Data Model Tools)

說明如何使用預存程序擷取實體類型的集合。

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

說明如何從 .NET Framework 應用程式查詢資料服務。

How to: Project Query Results (WCF Data Services)

說明如何減少資料服務查詢所傳回的資料量。

請參閱

其他資源

Querying a Conceptual Model (Entity Framework)

Querying the Data Service (WCF Data Services)