Thanks Le Long
seems the package has most of the necessities.
I tried to learn and use your library, but have some difficulties with the two mentioned methods and the path I should take for them,
In summary I have 3 related questions, which they could be handy for someone like me,
thanks for any help
1. The Find method :
it uses params
to look more dynamic I think, but couldn't find enough info how to use it,
for example I wrote a sample derived service for a type "Magic"
MagicService : Service<Magic>
now we want to have a specific method
how to achieve this the best way.
2. The Query method
you said it's better to return Queryable than IEnumerable,
and most in the repository will return IQueryFluent() ,
which couldn't cast it to my need,
at last couldn't deal with the result and get something like FirstOrDefault or SingleOrDefault
out of it.
3. a general SearchByTitle
Magic mag = svc.Query().Include(m=> m.Timeout == 30).Select().FirstOrDefault();
How to put something like this within the Repository and your service,
I tried to define an interface ITitle ,
if (TEntity is ITitle) ...
but seems a bit more work it needs.
Thanks for any help, provided info and your great effort.