日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > asp.net >内容正文

asp.net

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

發布時間:2025/4/14 asp.net 50 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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/下一步

Start the Quickstart/開始快速入門.

See Also/請參考

Concepts/概念

Entity Data Model/實體數據模型

Other Resources/其它資源

Getting Started with the Entity Framework/實體框架入門

?

轉載于:https://www.cnblogs.com/Chinese-xu/archive/2007/09/21/901118.html

總結

以上是生活随笔為你收集整理的ADO.NET Entity Framework Beta2(五)/快速入门(实体框架)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。