I have a DAL layer that contains an EF Dbcontext and entities. I have a service that contains a method where I want to do a simple Select that comes from the logic layer.
Layer: Logic=>DalService=>DbContext.DbSet.Select(something)
DAL does not know about any DTO models. Logic layer does not know about any Entities.
I'm basically trying to convert:
Func<T, dynamic>
selector
to
Func<TEntity, dynamic>
selector which I can basically use on a DbSet<TEntity>
.
Thanks