unit-of-work
Repository + UnitOfWork pattern for entity framework
I was searching the net up and down and I didn\'t manage to find a suitable design for my application.[详细]
2023-03-06 19:24 分类:问答Repository/Unit of Work pattern - How to query a repository for objects meeting certain criteria?
I have a standard repository interface in C# which includes the following methods: IEnumerable<T> GetAll();[详细]
2023-03-06 08:54 分类:问答EF4 with MVC3 - Do I need The Repository Pattern?
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.[详细]
2023-03-01 09:36 分类:问答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 it now redundant since I have noticed that EF 4.1 has IDBSet.[详细]
2023-02-28 10:50 分类:问答UnitOfWork vs Database connection
I currently have made a UnitOfWork implementation which wraps both the database connection and the transaction.[详细]
2023-02-27 03:35 分类:问答NHibernate Get() followed by Flush or Commit?
My ISession object\'s FlushMode is FlushMode.Commit. I use the unit of work and repository pattern as defined here:[详细]
2023-02-26 15:36 分类:问答Using the speicifcation pattern as a validation layer?
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[详细]
2023-02-25 21:17 分类:问答Scoping transactions and sessions in NHibernate for long running tasks
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[详细]
2023-02-25 00:55 分类:问答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 implement a separate \"Generic\" Repository around these implementations?[详细]
2023-02-24 11:22 分类:问答Unit of work when using MassTransit
I\'m looking for a way to hook on the message handling pipeline and do some workafter a consumer finishes handling some message.[详细]
2023-02-22 06:40 分类:问答
加载中,请稍侯......