通过概念模型查询数据

使用概念模型描述数据库中的数据时,可通过对象查询数据,而不必在数据库架构和对象模型之间来回转换。

您可以对实体框架和 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)