Skip to content

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

87 stars

Watchers

10 watching

Forks

Latest commit

 

History

47 Commits

Folders and files

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

87 stars

Watchers

10 watching

Forks

Releases

Packages

Used by

Contributors

Languages