unit-of-work
Repository & Unit of Work Pattern for Entity Framework using Dependency Injection
I tried the T4-Template from http://efrepository.codeplex.com, but I\'m struggling with the DI (uses StructureMap) Example code. It\'s just not enough for a DI beginner like me. It doesn\'t even compi[详细]
2023-02-20 18:39 分类:问答Unit of Work: created by/managed by Service Layer or Repository layer? C#/.NET
I\'m been reading, and have now seen two different implementations of the Unit of Work pattern. The first pattern has the Repository talking to the Unit of Work to a domain object.[详细]
2023-02-20 08:00 分类:问答ASP.NET MVC 2 , Nhibernate and transaction across layers
I am creating a solution in ASP.NET MVC 2, NHibernate and DDD. I am using a semi CQRS type Model. ASP.NET Controller send validated messaged to Service Layer which updates state of an Domain object.[详细]
2023-02-19 19:19 分类:问答UnitOfWork (NHibernate), only one active UoW/session at a time? (need advice)
I\'m using NHibernate, DI/IoC and the Unit of Work pattern. Most UoW examples I\'ve seen make sure that there can be only one active UoW/session at the same time, for example this one and this one.[详细]
2023-02-18 17:16 分类:问答UoW & Repository + Service Layer
I\'m using the following T4 to create my Repository & UoW: http://blogs.microsoft.co.il/blogs/gilf/archive/2010/07/05/repository-and-unit-of-work-t4-template-for-entity-framework.aspx[详细]
2023-02-18 01:52 分类:问答Unable to delete child entities from a POCO using Unit Of Work pattern
I am using POCO classes on an EF4 CTP5 project and I am having trouble deleting child properties. Here\'s my example (hopefully not too long).[详细]
2023-02-17 17:43 分类:问答How to do update a new record before it is committed in EF4?
I\'m using EF4 POCOs and UnitOfWork/repository patterns with MVC 3.I\'m trying to understand how I would modify a new record that is to be inserted.[详细]
2023-02-17 15:56 分类:问答UnitOfWork in Action Filter seems to be caching
I have an MVC 3 site that uses IoC (Unity), and my model is generated w/ EF4 and POCOs. I am using an action filter to commit my UnitOfWork:[详细]
2023-02-17 03:51 分类:问答NHibernate - use Session.Flush() in Dispose() method - good idea or not?
I use NHibernate in my application through a set of interfaces. The ISession is wrapped up in an interface called IUnitOfWork whose concrete implementation looks like this:[详细]
2023-02-16 19:07 分类:问答Repository Pattern w/EF 4 - Am I on the right track?
So I have been beating my head into the wall for the last few weeks trying to get this whole pattern of Service/Repository/UnitOfWork, and I have come to the following conclusions and wanted to see if[详细]
2023-02-16 06:43 分类:问答