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.
本快速入門列舉了一系列的任務(wù)演示來支持實體框架入門主題。這些任務(wù)的設(shè)計目的是幫助你開始熟悉ADO.NET實體框架
What You Will Learn/你將要學(xué)到的/本節(jié)目標(biāo)
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.
本快速開始的第一個任務(wù)向你展示了如何創(chuàng)建一個學(xué)校數(shù)據(jù)庫,然后使用Visual Studio 工具來生成一個實體數(shù)據(jù)模型(EDM)的映射文件,這是一個與數(shù)據(jù)庫中的表一對一關(guān)系的映射。后續(xù)的任務(wù)中,你將使用Visual Studio創(chuàng)建一個Windows窗體應(yīng)用程序,創(chuàng)建若干查詢以訪問學(xué)校構(gòu)架里的數(shù)據(jù),并且將查詢結(jié)果綁定到顯示控件從而在界面上顯示查詢結(jié)果。
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:
本快速入門假設(shè)使用者熟悉Visual Studio開發(fā)環(huán)境以及.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實體框架運行時組件和工具。
- 工具的安裝會擴(kuò)展Visual Studio 2008 的相關(guān)功能。
- 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分鐘(開玩笑,不過等學(xué)會了,那么從數(shù)據(jù)庫獲得數(shù)據(jù)并最終綁定顯示到界面是用不了30分鐘的)
Entity Framework Quickstart Tasks/實體框架快速入門任務(wù)
Creating the School Sample Database/創(chuàng)建學(xué)校樣例數(shù)據(jù)庫Create the School database schema and load data into the database.
創(chuàng)建學(xué)校數(shù)據(jù)庫架構(gòu)并且填充數(shù)據(jù)
Create a Windows Forms application to access data in the School model.
創(chuàng)建WinForm應(yīng)用程序來訪問學(xué)校模型。
Use Visual Studio tools to generate an EDM based on the School database.
使用Visual Studio 工具來生成一個基于學(xué)校數(shù)據(jù)庫的EDM文件
Create queries against the entities and associations in the School model, and bind controls to the results of those queries.
創(chuàng)建基于學(xué)校模型的實體和關(guān)系的查詢,將查詢結(jié)果綁定到控件上。
Next Steps/下一步
Start the Quickstart/開始快速入門.
See Also/請參考
Concepts/概念
Entity Data Model/實體數(shù)據(jù)模型Other Resources/其它資源
Getting Started with the Entity Framework/實體框架入門?
轉(zhuǎn)載于:https://www.cnblogs.com/Chinese-xu/archive/2007/09/21/901118.html
總結(jié)
以上是生活随笔為你收集整理的ADO.NET Entity Framework Beta2(五)/快速入门(实体框架)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 再贺开业
- 下一篇: 虹影图片下载器(Preview)