repository-pattern
Is it a bad idea to have multiple UnitOfWork instances open at a time (ASP.Net Applicaiton)?
I have an application I am working on, using Entity Framework 4.1 as my data access layer. I have created several repositories that work with different entities. Each repository, as part of the constr[详细]
2023-03-13 02:16 分类:问答nhibernate SaveOrUpdate - easily determine which of the operations will be performed
I am new to nhibernate. I am developing a small c# application, using the repository pattern. In my repository I\'ve implemented a simple hook to detect when the entity is being saved.[详细]
2023-03-12 15:39 分类:问答Interface for 4 interfaces?
I\'m having a quite large database app and trying to be using the repository pattern. I have 4 interfaces: IProductRepository, IFileRepository .... , and I want to have an combin开发者_运维知识库ed[详细]
2023-03-12 03:05 分类:问答How to access output parameter values for IParameterMapper?
Relational Database: Sql Server 2008 Programming Language: C# Used Framework: Enterprise Library 5.0 How do you access output parameters that are created within the implementation of IParameterMapper[详细]
2023-03-11 14:18 分类:问答What is best practise for repository pattern - repo per table?
The repository pattern seems to work well when working with an initial project with several large main tables.[详细]
2023-03-11 02:35 分类:问答How to create rich domain objects while maintaing persistence ignorance?
First off, I am using web forms without any ORM framework. I have been struggling with how to make my domain objects as \"smart\" and \"rich\" as they can be without allowing them access to my servic[详细]
2023-03-10 04:15 分类:问答Unit of Work Scope
I have a solution that uses webforms for front end & mvc for admin console. Both UIs consume a service layer via Ninject, and i am having trouble working out a subtle but rather important issue.[详细]
2023-03-10 04:13 分类:问答Connection error with Entity framework and class product from data layer
Goal: To use entity framework with N-tier in my WPF application. Problem: I can\'t merge the class Product from the map ProductRepository to entity framework that also has a class named Product.[详细]
2023-03-08 21:06 分类:问答Load only a single associated entity
I have repository to manage operations on ComplaintTypes which has a large number of associated entities so I def. do NOT want to load everything, thus I have LazyLoadingEnabled = true;. I do however[详细]
2023-03-08 20:19 分类:问答Implement a fake NHibernate repository
I am using StoryQ to perform some basic integration testing and we are using NHibernate as our ORM. When I started, I didn\'t know that NHibernate implemented the Repository pattern and so I created[详细]
2023-03-08 19:26 分类:问答