I\'m reading Sanderson\'s \"Pro ASP.NET MVC Framework\". I\'m confused a little with decoupling implementation.
Let me start by apologizing for the length of this post but I wanted to provide as much detail as possible to increase the chance of an answer.Thanks in advance.
I use Repository pattern (and linq2sql as data access) and have, for example, ProductsRep and CustomersRep.
New to EF and I have noticed that using a repository pattern can really simplify things and will allow me to do some mocking too.So far so good.
I am using the repository pattern found in the answer to this SO question: Advantage of creating a generic repository vs. specific repository for each obje开发者_JAVA技巧ct?
My apology as this question is difficult to express with nice words. I have question similar to this. Is it violation of Repository Pattern? to use Reposiotry created for Product is used to get all
I\'m a Winforms programmer before; I always partition programs I write in two parts, the front-end(Winforms) and middle-tier(facilitated by Remoting/WCF)
I\'m using Entity Framework version 1, and i\'m trying to create a generic repository, but I can\'t find a way to get the Primary Key of each table.Has anyone solved this issue?
In the real world, Controllers can potentially need to use data from a variety of database tables and other data stores.For example:
I\'m trying to figure out how to reuse Domain Models in different parts of the application and I have a feeling that the Data Mapper pattern is the way forward. The example below has methods that dire