Hi All,
I am writting a new application using the Entity Framework.
Where would the EF lie? My current thinking is to issolate it in a DataAccess assembly that exposes a number of repositories (that essentially wrap EF).
I would then create my own Domain objects and pass them to the repository that maps them to an EntityFramework Entity (which I treat as a DAO).
The problem with this approach is the amount of mapping I would need to do, even for a smaller domain model.
I also like the Repository.GetAll(Func filter) approach to retrive a filtered number of items, however I would need to convert the function to take a DAO instead:
Func<TDomainObj, bool> filter ---> Func<TEntityFrameworkObj, bool> filter
Not sure how I could do that? If I simply allowed Func on the repository, the caller would have to know about System.Data.Objects.
Im starting to think I should just couple the app to EF and use their System.Data.Objects as my model....
Look forward to your suggestions/comments,
David