Click here to Skip to main content
12,510,824 members (50,038 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads

Stats

116.1K views
9.2K downloads
105 bookmarked
Posted

Learning MVC Part 6: Generic Repository Pattern in MVC3 Application with Entity Framework

, 17 Mar 2015 CPOL
Unit of Work Pattern and Repository Pattern, and how to perform CRUD operations in an MVC application.
LearningMVCRepoPattern
LearningMVC
bin
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
Controllers
EFDataModel.edmx
Global.asax
LearningMVC.csproj.user
Models
Properties
Repository
Scripts
Views
My
Shared
LearningMVCWithEFRepoPattern.suo
packages
EntityFramework.4.1.10331.0
EntityFramework.4.1.10331.0.nupkg
EntityFramework.4.1.10331.0.nuspec
lib
jQuery.1.5.1
Content
Scripts
jQuery.1.5.1.nupkg
jQuery.1.5.1.nuspec
jQuery.UI.Combined.1.8.11
Content
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
Scripts
jQuery.UI.Combined.1.8.11.nupkg
jQuery.UI.Combined.1.8.11.nuspec
jQuery.Validation.1.8.0
Content
Scripts
jQuery.Validation.1.8.0.nupkg
jQuery.Validation.1.8.0.nuspec
jQuery.vsdoc.1.5.1
Content
Scripts
jQuery.vsdoc.1.5.1.nupkg
jQuery.vsdoc.1.5.1.nuspec
Modernizr.1.7
Content
Scripts
Modernizr.1.7.nupkg
Modernizr.1.7.nuspec
EntityFramework.dll
LearningMVC.dll
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
EFDataModel.edmx
Global.asax
LearningMVC.csproj.user
LearningMVCWithEFRepoPattern.suo
EntityFramework.4.1.10331.0.nupkg
EntityFramework.4.1.10331.0.nuspec
EntityFramework.dll
jQuery.1.5.1.nupkg
jQuery.1.5.1.nuspec
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.Combined.1.8.11.nupkg
jQuery.UI.Combined.1.8.11.nuspec
jQuery.Validation.1.8.0.nupkg
jQuery.Validation.1.8.0.nuspec
jQuery.vsdoc.1.5.1.nupkg
jQuery.vsdoc.1.5.1.nuspec
Modernizr.1.7.nupkg
Modernizr.1.7.nuspec
MVCWithEntityFrameworkGenericRepPattern
LearningMVC
bin
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
Controllers
EFDataModel.edmx
GenericRepository
Global.asax
LearningMVC.csproj.user
Models
Properties
Repository
Scripts
UnitOfWork
Views
My
Shared
LearningMVCWithEFGenericRepoPatternandUOW.suo
packages
EntityFramework.4.1.10331.0
EntityFramework.4.1.10331.0.nupkg
EntityFramework.4.1.10331.0.nuspec
lib
jQuery.1.5.1
Content
Scripts
jQuery.1.5.1.nupkg
jQuery.1.5.1.nuspec
jQuery.UI.Combined.1.8.11
Content
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
Scripts
jQuery.UI.Combined.1.8.11.nupkg
jQuery.UI.Combined.1.8.11.nuspec
jQuery.Validation.1.8.0
Content
Scripts
jQuery.Validation.1.8.0.nupkg
jQuery.Validation.1.8.0.nuspec
jQuery.vsdoc.1.5.1
Content
Scripts
jQuery.vsdoc.1.5.1.nupkg
jQuery.vsdoc.1.5.1.nuspec
Modernizr.1.7
Content
Scripts
Modernizr.1.7.nupkg
Modernizr.1.7.nuspec
EntityFramework.dll
LearningMVC.dll
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
EFDataModel.edmx
Global.asax
LearningMVC.csproj.user
LearningMVCWithEFGenericRepoPatternandUOW.suo
EntityFramework.4.1.10331.0.nupkg
EntityFramework.4.1.10331.0.nuspec
EntityFramework.dll
jQuery.1.5.1.nupkg
jQuery.1.5.1.nuspec
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.Combined.1.8.11.nupkg
jQuery.UI.Combined.1.8.11.nuspec
jQuery.Validation.1.8.0.nupkg
jQuery.Validation.1.8.0.nuspec
jQuery.vsdoc.1.5.1.nupkg
jQuery.vsdoc.1.5.1.nuspec
Modernizr.1.7.nupkg
Modernizr.1.7.nuspec
Learning MVC Part6.pdf
SqlScriptToCreateDatabase
SqlScriptToCreateTable

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Akhil Mittal
Architect Magic Software Inc.
India India
I am a Microsoft MVP, C# Corner MVP,a Code project MVP,blogger,programmer by heart and currently working as a Sr. Analyst in Magic Software and have an experience of more than 8 years in C#.Net. I am a B.Tech in Computer Science and hold a diploma in Information Security and Application Development. My work experience includes Development of Enterprise Applications using C#,.Net and Sql Server,Analysis as well as Research and Development. I am a MCP in Web Applications(MCTS-70-528,MCTS-70-515) and .Net Framework 2.0 (MCTS-70-536). Visit my personal blog CodeTeddy for more informative articles.
____________________________________________________________________________________________________
Article of Day http://www.asp.net/community/articles on 04 April 2016.
Article of Day http://www.asp.net/community/articles on 26 March 2016.
Article of Day http://www.asp.net/community/articles on 29 Jan 2016.
Article of Day http://www.asp.net/community/articles on 01 Aug 2015.
Article of Day http://www.asp.net/community/articles on 28 July 2015.
Article of Day http://www.asp.net/community/articles on 28 June 2015.
Article of Day http://www.asp.net/community/articles on 08 June 2015.
Article of Day http://www.asp.net/community/articles on 02 June 2015.
Article of Day http://www.asp.net/community/articles on 01 June 2015.
Article of Day http://www.asp.net/community/articles on 19 July 2014.
Article of Day http://www.asp.net/community/articles on 21 May 2014.
Article of Day http://www.asp.net/community/articles on 29 Oct 2013.
Article of Day http://www.asp.net/community/articles on 29 Sept 2013.
Article of Day http://www.asp.net/community/articles on 08 Sept 2013.
Article of Day http://www.asp.net/community/articles on 28 Aug 2013.
Article of Day http://www.asp.net/community/articles on 16 Aug 2013.
Winner http://www.c-sharpcorner.com/News/3067/july-2013-month-winners-announc
Group type: Collaborative Group

427 members


You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160929.1 | Last Updated 18 Mar 2015
Article Copyright 2013 by Akhil Mittal
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid