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
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.
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.
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.
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
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).
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.
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:
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:
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