lundi 9 octobre 2017

How to get EntityFramework DBContext Name with reflection

say we have

using (var lobo = new MyGymEntities())
{
}

I would like to get DbContext name(in this case is MyGymEntities) with reflection, is this possible?

I would like to store the string value into a variable..





Aucun commentaire:

Enregistrer un commentaire