更新时间:2023-02-26 09:41:22
给定 DataContext context
和 string tableName
,你可以说:
Given DataContext context
and string tableName
, you can just say:
var table = (ITable)context.GetType()
.GetProperty(tableName)
.GetValue(context, null);