Developer Network
MSDN subscriptions
Get tools
Sign in
Home
Technologies
Cloud
Mobile
Web
Business
Data
Gaming
Dev centers
Connect
Tech Advisors
Events
Forums
Downloads
Developer tools
SDKs
MSDN subscriptions
Library
Samples
Follow us
http://www.facebook.com/microsoftdeveloper
https://twitter.com/msdev
http://plus.google.com/111221966647232053570/
Microsoft Developer Network
>
Samples
>
ASP.NET MVC Application Using Entity Framework Code First
Download Visual Studio
Quick access
My samples
Upload a sample
Browse sample requests
ASP.NET MVC Application Using Entity Framework Code First
A Visual Studio 2013 project which shows how to use the Entity Framework 6 in an ASP.NET MVC 5 web application project, using the Code First development approach.
Download
C# (913.1 KB)
Ratings
(92)
Downloaded
223,094 times
Favorites
Add to favorites
Requires
Visual Studio 2013
Updated
4/16/2014
License
Apache License, Version 2.0
Share
Technologies
ADO.NET Entity Framework
,
ASP.NET
,
ASP.NET MVC
,
Entity Framework
Topics
Repository Pattern
,
Concurrency
,
Unit of Work Pattern
,
Code First
,
ASP.NET Code Sample Downloads
Report abuse to Microsoft
Description
Browse code
Q and A (41)
Solution explorer
C#
ContosoUniversity
App_Start
BundleConfig.cs
FilterConfig.cs
RouteConfig.cs
Content
bootstrap.css
bootstrap.min.css
PagedList.css
Site.css
Controllers
CourseController.cs
DepartmentController.cs
HomeController.cs
InstructorController.cs
StudentController.cs
DAL
SchoolConfiguration.cs
SchoolContext.cs
SchoolInitializer.cs
SchoolInterceptorLogging.cs
SchoolInterceptorTransientErrors.cs
fonts
glyphicons-halflings-regular.eot
glyphicons-halflings-regular.svg
glyphicons-halflings-regular.ttf
glyphicons-halflings-regular.woff
Logging
ILogger.cs
Logger.cs
Migrations
201402242126344_InitialCreate.cs
201402242126344_InitialCreate.Designer.cs
201402242126344_InitialCreate.resx
201402242138028_MaxLengthOnNames.cs
201402242138028_MaxLengthOnNames.Designer.cs
201402242138028_MaxLengthOnNames.resx
201402242139118_ColumnFirstName.cs
201402242139118_ColumnFirstName.Designer.cs
201402242139118_ColumnFirstName.resx
201402242150170_ComplexDataModel.cs
201402242150170_ComplexDataModel.Designer.cs
201402242150170_ComplexDataModel.resx
201402251758056_DepartmentSP.cs
201402251758056_DepartmentSP.Designer.cs
201402251758056_DepartmentSP.resx
201402251804219_RowVersion.cs
201402251804219_RowVersion.Designer.cs
201402251804219_RowVersion.resx
201402251853267_Inheritance.cs
201402251853267_Inheritance.Designer.cs
201402251853267_Inheritance.resx
Configuration.cs
Models
Course.cs
Department.cs
Enrollments.cs
Instructor.cs
OfficeAssignment.cs
Person.cs
Student.cs
Properties
AssemblyInfo.cs
Scripts
_references.js
bootstrap.js
bootstrap.min.js
jquery-1.10.2.intellisense.js
jquery-1.10.2.js
jquery-1.10.2.min.js
jquery-1.10.2.min.map
modernizr-2.6.2.js
respond.js
respond.min.js
ViewModels
AssignedCourseData.cs
EnrollmentDateGroup.cs
InstructorIndexData.cs
Views
Course
Create.cshtml
Delete.cshtml
Details.cshtml
Edit.cshtml
Index.cshtml
UpdateCourseCredits.cshtml
Department
Create.cshtml
Delete.cshtml
Details.cshtml
Edit.cshtml
Index.cshtml
Home
About.cshtml
Contact.cshtml
Index.cshtml
Instructor
Create.cshtml
Delete.cshtml
Details.cshtml
Edit.cshtml
Index.cshtml
Shared
_Layout.cshtml
Error.cshtml
Student
Create.cshtml
Delete.cshtml
Details.cshtml
Edit.cshtml
Index.cshtml
_ViewStart.cshtml
Web.config
ContosoUniversity.csproj
CUBeforeInheritance.zip
favicon.ico
Global.asax
Global.asax.cs
packages.config
Project_Readme.html
Web.config
Web.Debug.config
Web.Release.config
ContosoUniversity.sln
Click an item in the panel on the left to view the contents here.