jeudi 30 juillet 2015

Loop through all the properties of an entity object and get the corresponding value?

I'm using Entity framework 6 DBContext , Database First.

Let's say that I have an object , myobj1 from one of entity.

Is there any way to loop through all the properties of this object and to get current value of each of them ?

Of course I need a general code that should work for any object from any entity.





Aucun commentaire:

Enregistrer un commentaire