I just started with NHibernate yesterday. The tutorial at
http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx
seems decent except for the lack of a downloadable project and
incomplete code examples.
There is one line that looks like this:
Product product =
session.CreateCriteria(typeof(Product)).Add(Restrictions.Eq("Name",
name)).UniqueResult<Product>();
but I just can't find out where "Restrictions" is coming from. I have
been searching for 2 hours and it's like some sort of secret or
something, nobody will say where it comes from.
Please help newbie. Thanks.
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.