我System.Linq.Dynamic.Core用来动态地将lambda表达式添加到EF中的查询中.
System.Linq.Dynamic.Core
我也希望能够按名称选择表格.我找到了这个答案:
/sf/answers/1967088791/
但它不适用于asp.net core 2.0.我不能使用DbSet我必须使用DbSet<TEntity>它在错误消息中说.
DbSet
DbSet<TEntity>
我希望能够做到 db.GetTable("Namespace.MyTable").Where(...)
db.GetTable("Namespace.MyTable").Where(...)
我怎样才能做到这一点?
c# linq entity-framework-core asp.net-core
asp.net-core ×1
c# ×1
entity-framework-core ×1
linq ×1