没有合适的资源?快使用搜索试试~ 我知道了~
首页Entity Framework 6 ASP.NET MVC 5项目实战.pdf
资源详情
资源评论
资源推荐
The basics of using Entity Framework 6 to display and edit data in an ASP.NET MVC 5
application.
http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc
1. Creating an Entity Framework Data Model
By Tom Dykstra|November 1, 2013
This tutorial introduces the Contoso University application that you will build and walks you through
creating the sample database.
2. Implementing Basic CRUD Functionality
By Tom Dykstra|November 1, 2013
In this tutorial you review and customize the CRUD (create, read, update, delete) code that the
ASP.NET MVC scaffolding automatically creates for you in controllers and views.
3. Sorting, Filtering, and Paging
By Tom Dykstra|November 1, 2013
In this tutorial you add sorting, filtering, and paging functionality to the Students Index page, and
you create a page that does simple grouping.
4. Connection Resiliency and Command Interception
By Tom Dykstra|November 1, 2013
In this tutorial you configure a retry policy to be used when you deploy the database to Windows
Azure SQL Database, and you set up code that intercepts SQL commands sent to the database, for
testi...
5. Code First Migrations and Deployment
By Tom Dykstra|November 1, 2013
In this tutorial you configure Code First Migrations and you use Migrations to deploy the database
to Windows Azure SQL Database.
6. Creating a More Complex Data Model
By Tom Dykstra|November 1, 2013
In this tutorial you add more entities and relationships and make use of data annotation attributes
to control the behavior of the model classes.
7. Reading Related Data
By Tom Dykstra|November 1, 2013
In this tutorial you'll read and display related data — that is, data that the Entity Framework loads
into navigation properties.
8. Updating Related Data
By Tom Dykstra|November 1, 2013
In this tutorial you learn how to update related data.
9. Async and Stored Procedures
By Tom Dykstra|November 1, 2013
In this tutorial you learn how to use the asynchronous programming model with Entity Framework 6,
and how to use stored procedures with insert, update, and delete options.
============================================
============================================
===
Creating an Entity Framework Data Model for an
ASP.NET MVC Application
By Tom Dykstra|November 1, 2013
DOWNLOAD ASSETS: Completed Project
The Contoso University sample web application demonstrates how to create ASP.NET MVC 5 applications
using the Entity Framework 6 and Visual Studio 2013. The sample application is a web site for a fictional
Contoso University. It includes functionality such as student admission, course creation, and instructor
assignments. This tutorial series explains how to build the Contoso University sample application. You
candownload the completed application.
Code First
There are three ways you can work with data in the Entity Framework: Database First, Model First, and Code
First. This tutorial is for Code First. For information about the differences between these workflows and
guidance on how to choose the best one for your scenario, see Entity Framework Development Workflows.
MVC
The sample application is built on ASP.NET MVC. If you prefer to work with the ASP.NET Web Forms model,
see the Model Binding and Web Forms tutorial series and ASP.NET Data Access Content Map.
Software versions
Shown in the
tutorial
Also works with
Windows 8
Windows 7
Visual Studio
2013
Visual Studio 2013 Express for Web. This is automatically installed by the Windows Azure
SDK if you don't already have VS 2013 or VS 2013 Express for Web.
Visual Studio 2012 with the latest update should work, but the tutorial has not been
tested with it, and some menu selections and dialog boxes are different. The VS 2012
version of the Windows Azure SDK is required for Windows Azure deployment.
.NET 4.5
Most of the features shown will work in .NET 4, but some won't. For example, enum
support in EF requires .NET 4.5.
Entity
Framework 6
Windows
Azure SDK 2.2
If you skip the Windows Azure deployment steps, you don't need the SDK.
When a new version of the SDK is released, the link will install the newer version. In that
case, you might have to adapt some of the instructions to new UI and features.
Questions
If you have questions that are not directly related to the tutorial, you can post them to the ASP.NET Entity
Framework forum, the Entity Framework and LINQ to Entities forum, or StackOverflow.com.
Acknowledgments
See the last tutorial in the series for acknowledgments and a note about VB.
Previous versions of the tutorial
For previous versions of this tutorial, see the EF 4.1 / MVC 3 e-book and Getting Started with EF 5 using MVC 4.
The EF 5 tutorial and download project includes features that have not yet been included in this EF 6 version of
the tutorial.
The Contoso University Web Application
The application you'll be building in these tutorials is a simple university web site.
Users can view and update student, course, and instructor information. Here are a few of the screens you'll
create.
The UI style of this site has been kept close to what's generated by the built-in templates, so that the tutorial
can focus mainly on how to use the Entity Framework.
Prerequisites
See Software Versions at the top of the page. Entity Framework 6 is not a prerequisite because you install the
EF NuGet package is part of the tutorial.
Create an MVC Web Application
Open Visual Studio and create a new C# Web project named "ContosoUniversity".
剩余196页未读,继续阅读
mmxsss
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论3