08 2019 档案
摘要:有一个类 现在我想通过如下设置使用Expression表达式 然后我想得到这个expression的名称Id。 实现方法如下 使用方式
阅读全文
摘要:public static class DbContextExtension { public static IQueryable Query(this DbContext context, Type entityType) { var SetMethod = typeof(DbContext).GetMethod(nameof(DbContext.Set)); return (IQueryabl
阅读全文
摘要:var entityType = item.GetEntityType(); // 获取到对象类型 var generic = typeof(IRepository).MakeGenericType(entityType, typeof(string));
阅读全文