Lambda expression in Criteria

3 views
Skip to first unread message

ryzam

unread,
Jan 29, 2009, 8:01:30 PM1/29/09
to ALTNETMY
Instead of using NHibernate.Linq, we can use another option but
specific on ICriteria, please refer to this url :

http://broloco.blogspot.com/2008/12/using-lambda-expressions-with.html

Ikhwan Hayat

unread,
Jan 29, 2009, 8:33:31 PM1/29/09
to altn...@googlegroups.com
Nice, thanks for sharing. A noteworthy improvement, no more magic
strings for criteria, tapi aku personally suka lagi NHibernate LINQ.

Ada pro cons jugak.

Kalau guna Criteria, kena mahirkan dulu dgn criteria2 yg ada. Some are
not so straightforward, mcm Disjoint, Adjoint etc. Tapi kalau guna
LINQ, cara yg digunakan lebih mudah difahami.

Tapi guna criteria, kita boleh buat pattern Query Object (dlm site
dari link tu ada sebut), kalau guna NH LINQ, tak pasti mcm mana. Boleh
pakai Expression kot?

Reply all
Reply to author
Forward
0 new messages