Tags » Unit Of Work

Unit of Work, Repository, Entity Framework, and Persistence Ignorance

Let me lay my cards on the table. I’m not an expert on design patterns. But I’ve read some books, some blog posts, and followed many a debate online. 1,927 more words


Repository + Unit Of Work Pattern Demystified

The repository and unit of work patterns are intended to create an abstraction layer between the data access layer and the business logic layer of an application. 1,800 more words

Design Pattern

Creating a sample WinForms application, part three: abstract Xpo business class objects

In part two of this series we learned how to create a data layer which tells Xpo how to connect to our data store (in this case, a Sql Express server located on the same machine). 1,098 more words


Unit Of Work

Note There are many ways to implement the repository and unit of work patterns. You can use repository classes with or without a unit of work class. 118 more words

Unit of work Design pattern with Repository and Session

Prerequisites : Repository Pattern

What is Unit of work pattern and why is it needed ??

According to Martin Fowler : ‘It Maintains a list of objects affected by a business transaction and coordinates the writing out of changes and the resolution of concurrency problems’.  1,638 more words


Introduce Audit logging to your EF application using the Repository & Unit of Work patterns

Recently, I began exploring how to add audit logging to an existing application that was built using Entity Framework. I wanted a generic implementation that was applicable to any db entity & also allowed flexibility in the amount of information logged. 617 more words