unit-of-work
Simple transactions in EF4.0 POCO with UnitOfWork pattern and ApplicationBus
i recently ran into the surprising behaviour of EF4, where after adding an entity to a context it is not available for querying (well, you need to make your queries aware, that you might be searching[详细]
2023-04-12 19:42 分类:问答Entity Framework CreateObjectset Attach method not updating
I am using an example off this link to update database tables in SQL Server 2008 following the repository and Unit of Work pattern.[详细]
2023-04-11 12:21 分类:问答EF4 and UnitOfWork - How to make custom properties work
Say I have: public class A { public virtual int Id { get; set; } } public class ARepository { private SomeContext _context;[详细]
2023-04-11 07:16 分类:问答Is using the following akin to using the unit of work pattern
Does using an nHiberbnate session/transaction combo perform the same function that the unit of work pattern would? below is some code found on the web..[详细]
2023-04-11 04:03 分类:问答How does unit of work class know which repository to call on commit?
* Preface: I\'m pretty new to the unit of work pattern * My goal is to implement a unit of work class that will be able to keep track of all objects that have been changed throughout a given transact[详细]
2023-04-07 03:31 分类:问答How to implement Unit of Work that works with EF and NHibernate
I was working on a Unit of Work implementation that works both in Entity Framework 4.1 and NHibernate. Find below the skeleton of my implementation details[详细]
2023-04-04 22:17 分类:问答Entity Framework Code First, Unit of Work, Repository and shared DbContext
I\'m building a web app using EF Code First and ASP.NET MVC. I have following types: IProblemRepository[详细]
2023-04-04 04:26 分类:问答Dependency Injection and multiple projects in solution
I have been following this article concerning the use of the repository pattern and UnitOfWork with entity framework. I am also planning to use Ninject as my IOC container for an upcoming project.[详细]
2023-04-03 10:09 分类:问答Multiple DBContexts with UnitOfWork and Repositories?
How can i create multiple dbcontexts and how to adress this to a repository to use? My current example is based on MyFinance, codeplex application , so this means you should be able to view the sourc[详细]
2023-04-01 18:00 分类:问答Data services methods naming
When you work with ORM which implement UnitOfWork pattern (NHibernate\'s Session, Entity 开发者_如何转开发Framework\'s ObjectContext, etc.), there are two types of data services methods: those which s[详细]
2023-04-01 15:48 分类:问答