Free Hit Counters
http://www.dellasdeals.com

ADO.NET Entity Framework Beta2(五)/快速入门(实体框架)

This quickstart illustrates a series of tasks that support the topics in Getting Started with the Entity Framework. These tasks are designed to help you become familiar with the ADO.NET Entity Framework.

本快速入门列举了一系列的任务演示来支持实体框架入门主题。这些任务的设计目的是帮助你开始熟悉ADO.NET实体框架

What You Will Learn/你将要学到的/本节目标

The first task in this quickstart shows you how to create the School database, and then use Visual Studio tools to generate mapping files for an Entity Data Model (EDM), based on a 1:1 mapping to tables in the database. In subsequent tasks, you will create a Windows Forms application in Visual Studio, create queries that access data in the School model, and bind the query results to display controls to show the results of the queries.

本快速开始的第一个任务向你展示了如何创建一个学校数据库,然后使用Visual Studio 工具来生成一个实体数据模型(EDM)的映射文件,这是一个与数据库中的表一对一关系的映射。后续的任务中,你将使用Visual Studio创建一个Windows窗体应用程序,创建若干查询以访问学校构架里的数据,并且将查询结果绑定到显示控件从而在界面上显示查询结果。

Requirements/试验需求

This quickstart is intended for users who are familiar with Visual Studio development and the .NET Framework, but who are new to the Entity Framework. To complete the quickstart, you must have the following software installed:

本快速入门假设使用者熟悉Visual Studio开发环境以及.NET框架,并刚刚开始接触实体框架。为了完成所有的快速入门,你必须安装以下软件:

  • Microsoft Visual Studio 2008.
  • Microsoft Visual Studio 2008。目前版本Bata2。
  • 综合下载地址 下载Visual Studio 2008 Bata2
  • 其中Express版、Standard版、Professional版都没有中文版,下载文件大小约700M以下
  • Team Suite版有简体中文版,但下载文件约3.5G
  • 以上下载都需要微软Live ID帐号。
  • 还有单独的MSDN可下载,没有中文版,约1.9G
  • The ADO.NET Entity Framework runtime and tools. You can download the ADO.NET Entity Framework runtime and tools from the Microsoft Download Center .
  • ADO.NET实体框架运行时组件和工具。你可以在微软下载中心下在ADO.NET实体框架运行时组件和工具。
  • 工具的安装会扩展Visual Studio 2008 的相关功能。

  • Microsoft SQL Server 2005 or later with Database Services installed, or SQL Server 2005 Express Edition or later (SQL Server Express).
  • SQL Server 2005及更高版本,或SQL Server 2005 Express及更高版本
  • SQL Server 2005  Epress 基本版 下载地址

Estimated time to complete this tutorial: 30 minutes.

完成教程估计所需时间:30分钟(开玩笑,不过等学会了,那么从数据库获得数据并最终绑定显示到界面是用不了30分钟的)

Entity Framework Quickstart Tasks/实体框架快速入门任务

Creating the School Sample Database/创建学校样例数据库

Create the School database schema and load data into the database.
创建学校数据库架构并且填充数据

Creating the Class Schedule Application/创建班级课程表应用程序

Create a Windows Forms application to access data in the School model.
创建WinForm应用程序来访问学校模型。

Generating the School Entity Data Model/生成学校实体数据末模型

Use Visual Studio tools to generate an EDM based on the School database.
使用Visual Studio 工具来生成一个基于学校数据库的EDM文件

Querying Entities and Associations/查询实体和关系

Create queries against the entities and associations in the School model, and bind controls to the results of those queries.
创建基于学校模型的实体和关系的查询,将查询结果绑定到控件上。

Next Steps/下一步

See Also/请参考

Concepts/概念

Entity Data Model/实体数据模型

Other Resources/其它资源

Getting Started with the Entity Framework/实体框架入门

 

posted @ 2007-09-21 12:15  徐少侠  阅读(2654)  评论(0编辑  收藏  举报
作者:徐少侠 出处:http://www.cnblogs.com/Chinese-xu/

本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,如有问题,可以通过 Chinese_Xu@126.com 联系我,非常感谢。