I am using the framework 6 entity in my first project code project. a context variable class that inherits from the DbContext type.
I have this code:
var table = (IEnumerable)context.GetType().
GetProperty("TableName").
GetValue(context, null);
From tableabove, I need to get the column type by its name.
Any idea how I can implement it?
source
share