I am using entity framework 6 in my project code first approach.
I have this code:
var table = (IEnumerable)context.GetType().
GetProperty("TableName").
GetValue(context, null);
From the table
above I need to get type of the column by it name.
Any idea how can I implement it?
Aucun commentaire:
Enregistrer un commentaire