These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: EqExpression not accepted
PostPosted: Thu Nov 20, 2008 3:00 pm 
Newbie

Joined: Thu Nov 20, 2008 2:49 pm
Posts: 1
In the process of upgrading to the latest version of NHibernate. As directed by the release notes, I have changed NHibernate.Expression namespace to NHibernate.Criterion. As a consequence wherever 'EqExpression' is used there is an error and the solution won't build!
Is there a directive or assembly reference I'm missing?

Here's a piece of code:

...
using NHibernate;
using NHibernate.Criterion;
...
ICriteria crit = session.CreateCriteria(typeof(Order));
crit.Add(new EqExpression("Customer", customer));
crit.SetFetchMode("Customer", FetchMode.Eager);
crit.SetResultTransformer(new NHibernate.Transform.DistinctRootEntityResultTransformer());
....

Thanks for your help.

Oskar


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.