Don't forget add EntitySpaces operands to Where method.

In EntitySpaces  you can specify filter to load data. I've wrote the following code

EmployeesCollection collection = new EmployeesCollection();   
Collection.Query.LastName.Like("A%")   
collection.Query.Load();   

and couldn't understand why the filter doesn't work.

The reason is that functions similat to Like, LessThan return esWhereItem that will work only after they passed to esDynamicQuery.Where(Object[]()) method.
So the correct code must be

Dim collection As EmployeesCollection = New EmployeesCollection()  
collection.Query.Where(collection.Query.LastName.Like("A%"))
collection.Query.Load()    
 

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted @ Thursday, February 22, 2007 9:53 AM
Print

Comments on this entry:

No comments posted yet.

Your comment:



(not displayed)


 
 
 
 
 

Live Comment Preview:

 
«February»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910