什么是NHibernate的HQL的相当于T-SQL的TOP关键字?
What is NHibernate HQL's Equivalent to T-SQL's TOP Keyword?
还什么是非HQL方式说给我的前15个一类?
Also what is the non-HQL way for saying give me the first 15 of a class?
它实际上是美元的HQL p $ ptty的方便:
It's actually pretty easy in HQL:
var top15 = session.CreateQuery("from SomeEntity")
.SetFirstResult(0)
.SetMaxResults(15)
.List<SomeEntity>();
不知道如何使用标准的API,虽然做到这一点。
Don't know how to do this using the criteria API though.
上一篇:如何升级Bazel?Bazel
下一篇:错误:未在任何.rc文件中定义配置值Cuda信息:调用ID:1faa4ce7-96be-42d3-80bc-10cac6a8f3a7定义、错误、文件、信息