mardi 1 décembre 2020

Entity Framework Core - Generic Set method with reflection

I have this line of code:

dbContext.Set<????>().Add(this.arr);

I also have a Type variable. It it possible to put this type variabel in Set? If so, how can I achieve this?

Really hope someone can help me out with this one.





Aucun commentaire:

Enregistrer un commentaire