Developer Network
Get tools
MSDN subscriptions
Sign in
Opportunity
iOS
Android
Web
.Net
Design
Games
Platform
Tablet & PC
Phone
Cloud
Connect
Perspectives
Events
Forums
Downloads
Developer tools
SDKs
MSDN subscriptions
Develop
Library
Code samples
Join 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 project which shows how to use the Entity Framework 5 in an ASP.NET MVC 4 web application project, using the Code First development approach.
Download
C# (987.8 KB)
Ratings
(73)
Downloaded
164,206 times
Favorites
Add to favorites
Requires
Visual Studio 2012
Last updated
8/7/2013
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 (31)
Solution explorer
C#
.nuget
NuGet.Config
NuGet.exe
NuGet.targets
ContosoUniversity
App_Start
AuthConfig.cs
BundleConfig.cs
FilterConfig.cs
RouteConfig.cs
WebApiConfig.cs
Content
themes
base
images
ui-bg_flat_0_aaaaaa_40x100.png
ui-bg_flat_75_ffffff_40x100.png
ui-bg_glass_55_fbf9ee_1x400.png
ui-bg_glass_65_ffffff_1x400.png
ui-bg_glass_75_dadada_1x400.png
ui-bg_glass_75_e6e6e6_1x400.png
ui-bg_glass_95_fef1ec_1x400.png
ui-bg_highlight-soft_75_cccccc_1x100.png
ui-icons_222222_256x240.png
ui-icons_2e83ff_256x240.png
ui-icons_454545_256x240.png
ui-icons_888888_256x240.png
ui-icons_cd0a0a_256x240.png
minified
images
ui-bg_flat_0_aaaaaa_40x100.png
ui-bg_flat_75_ffffff_40x100.png
ui-bg_glass_55_fbf9ee_1x400.png
ui-bg_glass_65_ffffff_1x400.png
ui-bg_glass_75_dadada_1x400.png
ui-bg_glass_75_e6e6e6_1x400.png
ui-bg_glass_95_fef1ec_1x400.png
ui-bg_highlight-soft_75_cccccc_1x100.png
ui-icons_222222_256x240.png
ui-icons_2e83ff_256x240.png
ui-icons_454545_256x240.png
ui-icons_888888_256x240.png
ui-icons_cd0a0a_256x240.png
jquery.ui.accordion.min.css
jquery.ui.autocomplete.min.css
jquery.ui.button.min.css
jquery.ui.core.min.css
jquery.ui.datepicker.min.css
jquery.ui.dialog.min.css
jquery.ui.progressbar.min.css
jquery.ui.resizable.min.css
jquery.ui.selectable.min.css
jquery.ui.slider.min.css
jquery.ui.tabs.min.css
jquery.ui.theme.min.css
jquery-ui.min.css
jquery.ui.accordion.css
jquery.ui.all.css
jquery.ui.autocomplete.css
jquery.ui.base.css
jquery.ui.button.css
jquery.ui.core.css
jquery.ui.datepicker.css
jquery.ui.dialog.css
jquery.ui.progressbar.css
jquery.ui.resizable.css
jquery.ui.selectable.css
jquery.ui.slider.css
jquery.ui.tabs.css
jquery.ui.theme.css
jquery-ui.css
PagedList.css
Site.css
Controllers
AccountController.cs
CourseController.cs
DepartmentController.cs
HomeController.cs
InstructorController.cs
StudentController.cs
DAL
CourseRepository.cs
GenericRepository.cs
IStudentRepository.cs
SchoolContext.cs
StudentRepository.cs
UnitOfWork.cs
Filters
InitializeSimpleMembershipAttribute.cs
Images
accent.png
bullet.png
heroAccent.png
orderedList0.png
orderedList1.png
orderedList2.png
orderedList3.png
orderedList4.png
orderedList5.png
orderedList6.png
orderedList7.png
orderedList8.png
orderedList9.png
Migrations
201307230521326_InitialCreate.cs
201307230521326_InitialCreate.Designer.cs
201307230521326_InitialCreate.resx
201307232351446_MaxLengthOnNames.cs
201307232351446_MaxLengthOnNames.Designer.cs
201307232351446_MaxLengthOnNames.resx
201307232353147_ColumnFirstName.cs
201307232353147_ColumnFirstName.Designer.cs
201307232353147_ColumnFirstName.resx
201307240007561_Chap4.cs
201307240007561_Chap4.Designer.cs
201307240007561_Chap4.resx
201307242336012_RowVersion.cs
201307242336012_RowVersion.Designer.cs
201307242336012_RowVersion.resx
201307250041322_Inheritance.cs
201307250041322_Inheritance.Designer.cs
201307250041322_Inheritance.resx
Configuration.cs
Models
AccountModels.cs
Course.cs
Department.cs
Enrollment.cs
Instructor.cs
OfficeAssignment.cs
Person.cs
Student.cs
Properties
AssemblyInfo.cs
Scripts
_references.js
jquery.unobtrusive-ajax.js
jquery.unobtrusive-ajax.min.js
jquery.validate.js
jquery.validate.min.js
jquery.validate.unobtrusive.js
jquery.validate.unobtrusive.min.js
jquery.validate-vsdoc.js
jquery-1.8.2.intellisense.js
jquery-1.8.2.js
jquery-1.8.2.min.js
jquery-ui-1.8.24.js
jquery-ui-1.8.24.min.js
knockout-2.2.0.debug.js
knockout-2.2.0.js
modernizr-2.6.2.js
ViewModels
AssignedCourseData.cs
EnrollmentDateGroup.cs
InstructorIndexData.cs
Views
Account
_ChangePasswordPartial.cshtml
_ExternalLoginsListPartial.cshtml
_RemoveExternalLoginsPartial.cshtml
_SetPasswordPartial.cshtml
ExternalLoginConfirmation.cshtml
ExternalLoginFailure.cshtml
Login.cshtml
Manage.cshtml
Register.cshtml
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
_LoginPartial.cshtml
Error.cshtml
Student
Create.cshtml
Delete.cshtml
Details.cshtml
Edit.cshtml
Index.cshtml
_ViewStart.cshtml
Web.config
ContosoUniversity.csproj
ContosoUniversity.csproj.user
favicon.ico
Global.asax
Global.asax.cs
packages.config
Web.config
Web.Debug.config
Web.Release.config
CU10.sln
Click an item in the panel on the left to view the contents here.