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.  [ 2 posts ] 
Author Message
 Post subject: How to use ISession.find(String query, object value, IType t
PostPosted: Mon Aug 14, 2006 5:01 am 
Newbie

Joined: Mon Aug 14, 2006 4:52 am
Posts: 7
I wrote this simple code
IList list = session.Find(("from Cat where birthdate >= ?", System.DateTime.Now, System.DateTime ).List();
The third parameter was not correct. It must be a type of IType, How can I do then? Does anybody have any sample code?
And where can I get the nHibernate's API reference?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 14, 2006 6:55 am 
Beginner
Beginner

Joined: Wed Apr 19, 2006 9:16 am
Posts: 24
use

Code:
IList list = session.Find(("from Cat where birthdate >= ?", System.DateTime.Now, NHibernateUtil.DateTime ).List();


The documentation can be found at
[url]
http://www.hibernate.org/hib_docs/nhibernate/html/
[/url][/code]

_________________
regards,
Willem van Rumpt


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

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.