我有以下对我有用的查询:
IList<info> result =
QueryOver<info>()
.Where(row => row.Timestamp >= fromDate)
.And(row => row.Timestamp <= toDate)
.OrderBy(row => row.Timestamp).Asc
.Skip(startRow).Take(count).List();
我需要通过从客户端获取附加 SQL 查询字符串并将其添加到我的查询中来扩展它,如下所示:
IList<info> result =
QueryOver<info>()
.Where(row => row.Timestamp >= fromDate)
.And(queryString)
.And(row => row.Timestamp <= toDate)
.OrderBy(row => row.Timestamp).Asc
.Skip(startRow).Take(count).List();
string queryString = "AND name='haim' And number=1"
是否可以添加 QueryOver 动态查询字符串?