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
上記が当てはまると思います