Top "Unit-of-work" questions

One of the common design patterns in enterprise software development which allows one to maintain a list of objects affected by a business transaction and coordinates the writing out of changes and the resolution of concurrency problems.

Register partically closed generic type with Autofac

I have UnitofWork class and it implement IUnitOfWork. I try to register that with Autofac: var builder = new ContainerBuilder(); builder .…

c# generics autofac unit-of-work
How to implement Unit Of Work pattern with Dapper?

Currently, I am trying to use Dapper ORM with Unit Of Work + Repository Pattern. I want to use Unit of …

repository-pattern dapper unit-of-work
Unit of Work + Repository Pattern: The Fall of the Business Transaction Concept

Combining Unit of Work and Repository Pattern is something used fairly widely nowadays. As Martin Fowler says a purpose of …

c# java architecture repository-pattern unit-of-work
Dependency injection in unit of work pattern using repositories

I want to create a unit of work class that wraps around repositories in a similar way to this. The …

c# entity-framework dependency-injection unit-of-work
Entity Framework 6 Code First - Is Repository Implementation a Good One?

I am about to implement an Entity Framework 6 design with a repository and unit of work. There are so many …

entity-framework repository-pattern unit-of-work
Entity Framework 6 and Unit Of Work... Where, When? Is it like transactions in ado.net?

Creating a new MVC project and like the idea of repositories in the data layer, so i have implemented them. …

c# asp.net-mvc entity-framework unit-of-work
How can I use a stored procedure + repository + unit of work patterns in Entity Framework?

I have MVC web application project with Entity Framework code first. In this project I am going to use generic …

entity-framework entity-framework-4 ef-code-first repository-pattern unit-of-work
Generic Repository With EF 4.1 what is the point

As i dig deeper in to the DbContext, DbSet and associated interfaces, I am wondering why you would need to …

repository-pattern entity-framework-4.1 unit-of-work
Repository and Unit of Work patterns - How to save changes

I'm struggling to understand the relationship between the Repository and Unit of Work patterns despite this kind of question being …

c# repository-pattern unit-of-work
Correct use of the NHibernate Unit Of Work pattern and Ninject

I have the following implementation and would like some feedback as to whether it makes correct use of NHibernate for …

nhibernate session transactions ninject unit-of-work