Strongly typed properties with NHIbernate
Posted
by Alexander Shapovalov
on Stack Overflow
See other posts from Stack Overflow
or by Alexander Shapovalov
Published on 2010-03-28T20:24:12Z
Indexed on
2010/03/28
20:33 UTC
Read the original article
Hit count: 649
nhibernate
Hello,
I am using NHibernate in my project, but I dont like to use typed properties for selecting items from database. Is it possible to have instead of
session.CreateCriteria(typeof(IEntry)).AddOrder(Order.Desc("Alias"))
somthing like this
session.CreateCriteria(typeof(IEntry)).AddOrder(Order.Desc(x=>x.Alias))
Thanks, Alexander.
© Stack Overflow or respective owner