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.
古いバージョンの .net が原因で、古いバージョンの nHibernate を使用しています。QueryOver はオプションではありません。nhibernate でテーブルの行を数える効率的な方法は何ですか?
コメントに表示されている HQL は正しいです。
int count = (int)s.CreateQuery("select count(*) from [classname]").UniqueResult();
これは、 で表されるテーブルの行数を返しますclassname。
classname