I am currently dynamically constructing queries like so:
QueryOver q = QueryOver.Of(); if (foo != null) q = q.Where(b => b.
2条回答 太阳男子 (楼主) 2021-01-13 12:37 This is not intuitive, but the following should work fine (QueryOver): if (bar) q = q.Where(b => b.GetType() == typeof(Derived)); I'm not sure about a way to do this in LINQ-to-NH. 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 自定义标题段落格式字体字号代码语言点击上传x 验证码 看不清? 提交回复
This is not intuitive, but the following should work fine (QueryOver):
if (bar) q = q.Where(b => b.GetType() == typeof(Derived));
I'm not sure about a way to do this in LINQ-to-NH.
热议问题