-->
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.  [ 4 posts ] 
Author Message
 Post subject: Expression API question
PostPosted: Tue Jun 06, 2006 11:14 am 
Beginner
Beginner

Joined: Thu Jun 01, 2006 11:27 am
Posts: 28
Hi i'm using NHibernate 1.2.0

Why i can't use the following in the NHibernate Expression API:

Expression.In("ObjectId", inValues)

and inValues declared like this: IList<Int64> inValues


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 11:30 am 
Beginner
Beginner

Joined: Wed May 03, 2006 5:10 am
Posts: 32
Location: Monopoli - Italy
I used it without problems.
Can you write your code?

Antonella


Top
 Profile  
 
 Post subject: NHibernate give me an error
PostPosted: Tue Jun 06, 2006 12:04 pm 
Beginner
Beginner

Joined: Thu Jun 01, 2006 11:27 am
Posts: 28
Error 2 Argument '2': cannot convert from 'System.Collections.Generic.IList<long>' to 'object[]'


Top
 Profile  
 
 Post subject: Use IList without generics
PostPosted: Wed Jun 07, 2006 3:34 am 
Beginner
Beginner

Joined: Wed May 03, 2006 5:10 am
Posts: 32
Location: Monopoli - Italy
Use IList without generics:

Code:
System.Collections.IList inValues = new System.Collections.ArrayList();
inValues.Add(550);
inValues.Add(450);
Expression.In("ObjectId", inValues)


Antonella


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.