I want to find out if it makes sense to use the Entity Framework code first ctp 5 IDbSet in a Repository base class .
It is recommended to have one repository per aggregate. However, I have a case where the same aggregate object can be fetched from 2 heterogeneous data stores. For the background, that object is:
So I have been beating my head into the wall for the last few weeks trying to get this whole pattern of Service/Repository/UnitOfWork, and I have come to the following conclusions and wanted to see if
The way I currently design systems is that each repository has its own database context. I dependency inject the connection string for each repository.
I am trying to come up with a generic way to pull an object by its Id in my repository. In my database, generally, all the IDs are primary keys and are of the type integer. There may be a case, down t
The other day I asked this question: Should the repository layer return data-transfe开发者_Python百科r-objects (DTO)?
With my only ORM knowledge being L2S/EF, I was surprised when the following code inserted a row into the database before I called repo.Save:
What I mean by that is, say I have a method in my repository: Public Function GetCustomerByState(ByVal State As String) As IQueryable(Of Customer)
I am using the UnitOfWork pattern with EF 4, and was just wondering where the implementation of the EFUnitOfWork should live? Should it live in the Repository Layer? I have all of my Interfaces in the
suppose I wo开发者_如何学Culd like to setup a similar SCM method for my project: trunk -> unstable development with new features, internally released every tot.