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.

can you have multiple transactions occur inside one session in nhibernate? And is it a bad idea?

I'm thinking about making my own IUnitOfWork implementation for an NHibernate persistence layer. It seems that the right way to …

c# nhibernate transactions unit-of-work
Is UnitOfWork and GenericRepository Pattern redundant In EF 4.1 code first?

Wondering if I need to use the Genericrepository pattern and UnitOfWork to mock the repository.I am using MOQ.Is …

unit-testing mocking repository-pattern entity-framework-4.1 unit-of-work
Entity Framework Core 1.0 unit of work with Asp.Net Core middleware or Mvc filter

I am using EF Core 1.0 (previously known ad EF7) and ASP.NET Core 1.0 (previously known as ASP.NET 5) for a …

middleware unit-of-work entity-framework-core asp.net-core-1.0
Where to convert business model to view model?

In my ASP.NET MVC application, I am using unit of work and repository patterns for data access. Using the …

c# asp.net-mvc entity-framework repository-pattern unit-of-work
Should I be using a Generic Repository with Entity Framework 5?

I'm currently using Entity Framework with a Generic Repository and Unit Of Work Pattern. My Model is similar to the …

c# entity-framework generics unit-of-work
Using Unit of Work design pattern / NHibernate Sessions in an MVVM WPF

I think I am stuck in the paralysis of analysis. Please help! I currently have a project that Uses NHibernate …

wpf nhibernate session mvvm unit-of-work
Entity Framework and Unit of Work

I am using EF/Repository/Unit of Work, but I am having a hard time understanding some details. Inside the …

entity-framework unit-of-work
The transaction operation cannot be performed because there are pending requests working on this transaction

I am getting error as : An error was reported while committing a database transaction but it could not be determined …

c# transactions repository entity-framework-6 unit-of-work
Entity Framework 4 - Where to put "ApplyCurrentValues" Logic?

I'm using the "stub technique" to update my POCO's (used in a detached context, ASP.NET MVC). This is the …

c# design-patterns entity-framework-4 unit-of-work
Can you iterate over the properties of an eloquent object?

If I have for example: $project = new Project(); // Project is a class that extends Eloquent $project->title; $project->…

php laravel eloquent unit-of-work