repository-pattern
ASP.NET Repository Pattern/Service Layer Caching
I\'m beginning to work on the caching infrastructure for my ASP.NET MVC site. The problem is, I can\'t seem to find a reasonable place for data caching (other than \'everywhere\')[详细]
2023-03-01 02:34 分类:问答Encapsulating WCF RIA services?
We would like to encapsulate WCF RIA services on client side within technology independent data services (aka Repositories, following Martin Fowler). Thus entities and colle开发者_StackOverflowctions[详细]
2023-03-01 01:46 分类:问答Cannot seem to moq EF CodeFirst 4.1.Help anyone?
I have been given the task to evaluate codeFirst and possible to use for all our future projects. The evaluation is based on using codeFirst with an existing database.[详细]
2023-02-28 14:40 分类:问答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 分类:问答Readonly properties in EF 4.1
I\'ve faced with situation when I need to have EF readonly property in case of \'optimistic update\'(you do not load current state of your domain object from database to check what properties are real[详细]
2023-02-28 03:27 分类:问答Repository pattern aggregate and aggregate root with Entity Framework 4.0
I have a question on implementing the repository pattern with my data model. I have searched online and looked into a lot of posts but I do not find any answer which clears my doubts. Basically our do[详细]
2023-02-27 04:58 分类:问答Performance of repository pattern and IQueryable<T>
I have no idea if I\'m doing this right, but this is how a Get method in my repository looks: public IQueryable<User> GetUsers(IEnumerable<Expression<Func<User, object>>> eage[详细]
2023-02-26 07:45 分类:问答Active Record pattern, Repository pattern and testability (in java)
What would be the drawback (in terms of testability for example) to the following approach which intends to get the best from Active Record pattern and Repository pattern ?[详细]
2023-02-25 06:43 分类:问答A repository, according to the Repository pattern, should provide queries or actual entities?
I am currently refactoring my code for a web application developed using ASP.NET MVC3 with C# and Razor. One of the pattern I am using in order to better structure my application is the Repository pat[详细]
2023-02-24 17:09 分类:问答Problems mocking out Repository with Moq
I am trying to mock out my Repository with Moq.I am trying to mock out all the query methods开发者_如何学C on my Repository.I have been successful in mocking out the method to return all offor the typ[详细]
2023-02-24 16:38 分类:问答