0
別居クエリ:LINQのにNHibernateは - 私は次のような状況持っ
対
var totalRecords = (from entry in invalidAccEntryRepository
select entry);
if (CustomerAccountInfoFilterActive)
{
totalRecords.Where(entry =>
entry.CustomerAccountInfo.CustomerAccountName == CustomerAccountName &&
entry.CustomerAccountInfo.CustomerAccountId == CustomerAccountId);
}
totalRecordsCount = totalRecords.Count();
最初のクエリが完全に動作しますが、2番目のクエリのみだけ
var totalRecords = (from entry in invalidAccEntryRepository
select entry);
を実行します
と条件付きで追加された式を無視します。
誰でも問題の原因を知ることができますか?もっと情報が必要ですか?
Thxで事前に!
ありがとう! – Chris
問題はありません。 :) –