Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NHibernates之间的确切区别是什么
Projection.RowCount()
和
Projection.Count()
当我们在寻找行数/结果时?
Projection.Count 期望你传递一个你想要计数的属性,即
Projection.Count("propertyName")
在 SQL 中转换为以下内容
select Count(this.whateverNhibernateConvention) from table as this
至于 Projection.RowCount 你不需要传递任何转化为
select Count(1) from table as this
我想我希望上面是这样的