博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ADO.NET Entity Framework Beta2(五)/快速入门(实体框架)
阅读量:6997 次
发布时间:2019-06-27

本文共 2772 字,大约阅读时间需要 9 分钟。

This quickstart illustrates a series of tasks that support the topics in . 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。
  • 综合下载地址
  • 其中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 .
  • 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/实体框架快速入门任务

Create the School database schema and load data into the database.

创建学校数据库架构并且填充数据

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/其它资源

 

作者:
出处:

本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。

如有问题,可以通过 联系我,非常感谢。

分类: , , ,
本文转自徐少侠博客园博客,原文链接:http://www.cnblogs.com/Chinese-xu/archive/2007/09/21/901118.html,如需转载请自行联系原作者
你可能感兴趣的文章
.NET Core容器化@Docker
查看>>
(1)Linux性能调优之Linux进程管理
查看>>
每周一个 Python 模块 | operator
查看>>
Synchronized原理
查看>>
服务化改造实践(三) | Dubbo + Zipkin
查看>>
Mysql 隔离级别
查看>>
Java虚拟机规范(目录)
查看>>
4.java数组
查看>>
阿里开发者们的第19个感悟:Simple is better.
查看>>
区块链技术进阶
查看>>
超简单七步,解决windows下安装PaddlePaddle的权限错误!
查看>>
Appium框架
查看>>
Jenkins 用户文档(入门)
查看>>
轻松检测Golang并发的数据竞争
查看>>
如何处理错误消息Please install the gcc make perl packages
查看>>
写完这段代码,就被开除了……
查看>>
浅析微信支付:如何使用沙箱环境测试
查看>>
8种常用数组去重方法
查看>>
Java知识点总结(面向对象)
查看>>
Webpack最简单的方式Mock API
查看>>