I was searching the net up and down and I didn\'t manage to find a suitable design for my application.
I have a standard repository interface in C# which includes the following methods: IEnumerable<T> GetAll();
I have recently learned of the Repository and Unit of Work Design Patterns and thought that I would implement them in a new EF4 MVC3 project, since abstraction is generally good.
Wondering if I need to use the Genericrepository pattern and UnitOfWork to mock the repository.I am using MOQ.Is it now redundant since I have noticed that EF 4.1 has IDBSet.
I currently have made a UnitOfWork implementation which wraps both the database connection and the transaction.
My ISession object\'s FlushMode is FlushMode.Commit. I use the unit of work and repository pattern as defined here:
I have only seen the specification pattern used to retrieve data, but not to validate it. A colleague suggested I can use the specification pattern to “validate” an object so it does not become inva
When using NHibernate in web applications, I will usually let my IoC container take care of opening and closing an ISession per request and commit/rollback the transaction. The nature of HTTP makes it
As i dig deeper in to the DbContext, DbSet and associated interfaces, I am wondering why you would need to implement a separate \"Generic\" Repository around these implementations?
I\'m looking for a way to hook on the message handling pipeline and do some workafter a consumer finishes handling some message.