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\')
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
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.
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.
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
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
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
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 ?
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
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