Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

Generic repository pattern using EF with Dependency injection (Ninject)

, 14 May 2013 CPOL
How to perform CRUD operations using generic repository with EF pattern with and dependency injection.
Mvc4Application-noexe.zip
DataAccess
DataEntity.edmx
Properties
Repository
Mvc4Application
App_Start
Content
Outlook
editor.png
imagebrowser.png
loading.gif
slider-h.gif
slider-v.gif
sprite-vertical.png
sprite.png
treeview-line.png
treeview-nodes-rtl.png
treeview-nodes.png
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
favicon.ico
Global.asax
Images
accent.png
aspNetHome.png
bullet.png
facebook.png
findHosting.png
heroAccent.png
NuGetGallery.png
orderedList0.png
orderedList1.png
orderedList2.png
orderedList3.png
orderedList4.png
orderedList5.png
orderedList6.png
orderedList7.png
orderedList8.png
orderedList9.png
twitter.png
windowsLive.png
Infrastructure
Models
Mvc4Application.csproj.user
Properties
Scripts
Views
Account
Employee
Home
Shared
User
Mvc4Resources
Properties
packages
EntityFramework.5.0.0-rc
Content
App.config.transform
Web.config.transform
EntityFramework.5.0.0-rc.nupkg
lib
net40
net45
tools
EntityFramework.PS3.psd1
EntityFramework.psd1
EntityFramework.psm1
init.ps1
install.ps1
Microsoft.AspNet.Mvc.4.0.20505.0
lib
net40
Microsoft.AspNet.Mvc.4.0.20505.0.nupkg
Microsoft.AspNet.Providers.1.1
content
web.config.transform
Microsoft.AspNet.Providers.1.1.nupkg
tools
Install.ps1
Microsoft.AspNet.Providers.Core.1.0
Microsoft.AspNet.Providers.Core.1.0.nupkg
Microsoft.AspNet.Razor.2.0.20505.0
lib
net40
Microsoft.AspNet.Razor.2.0.20505.0.nupkg
Microsoft.AspNet.Web.Optimization.1.0.0-beta2
Microsoft.AspNet.Web.Optimization.1.0.0-beta2.nupkg
Microsoft.AspNet.WebApi.4.0.20505.0
Microsoft.AspNet.WebApi.4.0.20505.0.nupkg
Microsoft.AspNet.WebApi.Client.4.0.20505.0
lib
net40
Microsoft.AspNet.WebApi.Client.4.0.20505.0.nupkg
Microsoft.AspNet.WebApi.Core.4.0.20505.0
lib
net40
Microsoft.AspNet.WebApi.Core.4.0.20505.0.nupkg
Microsoft.AspNet.WebApi.WebHost.4.0.20505.0
lib
net40
Microsoft.AspNet.WebApi.WebHost.4.0.20505.0.nupkg
Microsoft.AspNet.WebPages.2.0.20505.0
lib
net40
Microsoft.AspNet.WebPages.2.0.20505.0.nupkg
Microsoft.jQuery.Unobtrusive.Ajax.2.0.20505.0
Content
Scripts
Microsoft.jQuery.Unobtrusive.Ajax.2.0.20505.0.nupkg
Microsoft.jQuery.Unobtrusive.Validation.2.0.20505.0
Content
Scripts
Microsoft.jQuery.Unobtrusive.Validation.2.0.20505.0.nupkg
Microsoft.Net.Http.2.0.20505.0
lib
net40
Microsoft.Net.Http.2.0.20505.0.nupkg
Microsoft.Web.Infrastructure.1.0.0.0
Microsoft.Web.Infrastructure.1.0.0.0.nupkg
tools
Install.ps1
Uninstall.ps1
VS.psd1
VS.psm1
Modernizr.2.0.6
Content
Scripts
Modernizr.2.0.6.nupkg
Newtonsoft.Json.4.5.1
lib
net40
Newtonsoft.Json.4.5.1.nupkg
Ninject.3.0.0.15
lib
net35
net40
net45-full
sl2
sl3
sl3-wp
sl4
sl4-windowsphone71
sl5
Ninject.3.0.0.15.nupkg
Ninject.MVC3.3.0.0.6
lib
net40-full
net45-full
Ninject.MVC3.3.0.0.6.nupkg
Ninject.Web.Common.3.0.0.7
Content
App_Start
NinjectWebCommon.cs.pp
lib
net35-full
net40-full
net45-full
Ninject.Web.Common.3.0.0.7.nupkg
WebGrease.1.0.0
WebGrease.1.0.0.nupkg
Mvc4Application.zip
bin
Debug
Release
DataEntity.edmx
obj
Debug
DesignTimeResolveAssemblyReferencesInput.cache
edmxResourcesToEmbed
TempPE
DataEntity.Designer.cs.dll
App_Data
bin
Ninject.dll
Ninject.Web.Mvc.dll
editor.png
imagebrowser.png
loading.gif
slider-h.gif
slider-v.gif
sprite-vertical.png
sprite.png
treeview-line.png
treeview-nodes-rtl.png
treeview-nodes.png
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
favicon.ico
Global.asax
accent.png
aspNetHome.png
bullet.png
facebook.png
findHosting.png
heroAccent.png
NuGetGallery.png
orderedList0.png
orderedList1.png
orderedList2.png
orderedList3.png
orderedList4.png
orderedList5.png
orderedList6.png
orderedList7.png
orderedList8.png
orderedList9.png
twitter.png
windowsLive.png
Mvc4Application.csproj.user
obj
Debug
DesignTimeResolveAssemblyReferencesInput.cache
TempPE
bin
Debug
Release
obj
Debug
DesignTimeResolveAssemblyReferencesInput.cache
TempPE
ApplicationLabel.Designer.cs.dll
ErrorMessage.Designer.cs.dll
App.config.transform
Web.config.transform
EntityFramework.5.0.0-rc.nupkg
EntityFramework.dll
EntityFramework.dll
EntityFramework.PowerShell.dll
EntityFramework.PowerShell.Utility.dll
EntityFramework.PS3.psd1
EntityFramework.psd1
EntityFramework.psm1
init.ps1
install.ps1
migrate.exe
System.Web.Mvc.dll
Microsoft.AspNet.Mvc.4.0.20505.0.nupkg
web.config.transform
Microsoft.AspNet.Providers.1.1.nupkg
Install.ps1
lib
net40
System.Web.Providers.dll
Microsoft.AspNet.Providers.Core.1.0.nupkg
System.Web.Razor.dll
Microsoft.AspNet.Razor.2.0.20505.0.nupkg
lib
net40
System.Web.Optimization.dll
Microsoft.AspNet.Web.Optimization.1.0.0-beta2.nupkg
Microsoft.AspNet.WebApi.4.0.20505.0.nupkg
System.Net.Http.Formatting.dll
Microsoft.AspNet.WebApi.Client.4.0.20505.0.nupkg
System.Web.Http.dll
Microsoft.AspNet.WebApi.Core.4.0.20505.0.nupkg
System.Web.Http.WebHost.dll
Microsoft.AspNet.WebApi.WebHost.4.0.20505.0.nupkg
System.Web.Helpers.dll
System.Web.WebPages.Deployment.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
Microsoft.AspNet.WebPages.2.0.20505.0.nupkg
Microsoft.jQuery.Unobtrusive.Ajax.2.0.20505.0.nupkg
Microsoft.jQuery.Unobtrusive.Validation.2.0.20505.0.nupkg
System.Net.Http.dll
System.Net.Http.WebRequest.dll
Microsoft.Net.Http.2.0.20505.0.nupkg
lib
net40
Microsoft.Web.Infrastructure.dll
Microsoft.Web.Infrastructure.1.0.0.0.nupkg
Install.ps1
Uninstall.ps1
VS.psd1
VS.psm1
Modernizr.2.0.6.nupkg
Newtonsoft.Json.dll
Newtonsoft.Json.4.5.1.nupkg
Ninject.dll
Ninject.pdb
Ninject.dll
Ninject.pdb
Ninject.dll
Ninject.pdb
Ninject.dll
Ninject.pdb
Ninject.dll
Ninject.pdb
Ninject.dll
Ninject.pdb
Ninject.dll
Ninject.pdb
Ninject.dll
Ninject.pdb
Ninject.dll
Ninject.pdb
Ninject.3.0.0.15.nupkg
Ninject.Web.Mvc.dll
Ninject.Web.Mvc.pdb
Ninject.Web.Mvc.dll
Ninject.Web.Mvc.pdb
Ninject.MVC3.3.0.0.6.nupkg
NinjectWebCommon.cs.pp
Ninject.Web.Common.dll
Ninject.Web.Common.pdb
Ninject.Web.Common.dll
Ninject.Web.Common.pdb
Ninject.Web.Common.dll
Ninject.Web.Common.pdb
Ninject.Web.Common.3.0.0.7.nupkg
lib
Antlr3.Runtime.dll
WebGrease.dll
WG.exe
WebGrease.1.0.0.nupkg

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

vijay__p
Software Developer (Senior)
India India
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150414.1 | Last Updated 15 May 2013
Article Copyright 2013 by vijay__p
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid