1

私が次のhqlを持っていると仮定します:

select cast(coalesce(sum(c.Valoare), 0) as decimal)
      from Comision as c
      where c.User = :user

Linq-To-Nhibernateでこれを書く方法はありますか?

4

1 に答える 1

0

C# null 合体演算子を使用できますか?

(from c in Comision
where c.User = user
select c.Valoare ?? 0).Sum()
于 2011-03-18T16:02:55.973 に答える