dimanche 3 février 2019

create generic function for include in entityframewoek

i have this code :

_catP.Include(c => c.Category).FirstOrDefault(x => x.Product.Id == id)

and i use the generic repository . i need to use this code generic in repository .

How Can do this ?

Aucun commentaire:

Enregistrer un commentaire