Skip to content

An MVC 5 and Web API 2 application with Automapper, EF 6, repository pattern, dependency injection and IOC using Autofac which uses one unit of work to deal with multiple dbcontexts with Async functions

Notifications You must be signed in to change notification settings

CodeRef/UnitOfWorkWithMultipleDBContext

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

Unit Of Work With Multiple DBContexts

A MVC 5 application with Automapper, EF 6, repository pattern, dependency injection using Autofac which uses one unit of work to deal with multiple dbcontexts with Async functions.

Features:

  • Entity Framework 6
  • MVC 5 Web App
  • Async MVC 5 Web App
  • MVC 5 WepAPI 2
  • Dependency Injection and IOC using Autofac
  • Unit Of Work with multiple DBContexts
  • Generic Repository with Async functions
  • Code First approach
  • Power of repository extensibility
  • NUnit with Async Tests
  • Moq

Instructions:

  • Please alter connection strings in the application's webconfig file.
  • Go to package manager console -> select UoW_MultipleDBContext.Data and execute the command 'update-database -verbose'.

Hope this design pattern helps. Any suggestions are welcome in improving this framework.

-- Raghav

About

An MVC 5 and Web API 2 application with Automapper, EF 6, repository pattern, dependency injection and IOC using Autofac which uses one unit of work to deal with multiple dbcontexts with Async functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.4%
  • PowerShell 13.8%
  • C# 9.6%
  • Other 0.2%