This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Is there a reason why this wouldn't work: Query query = new Query(typeof(User)); query.QueryExpression = Entity.Attribute("LoweredUserName").Like("de%"); //query.Order = Order.By("UserName"); query.Page = Page.At(0, 10); IList<User> users1 = Repository.Find<User>(query);
But this does work :
Query query = new Query(typeof(User)); query.QueryExpression = Entity.Attribute("LoweredUserName").Like("de%"); query.Order = Order.By("UserName"); query.Page = Page.At(0, 10); IList<User> users1 = Repository.Find<User>(query); |
|
|
Hi Ivan, This is a bug which is now fixed in the trunk and will be released with 1.0 this week. Let me know if this is a blocker and I will get you a nightly. Cheers for raising the issue. Andrew. F.Y.I If you're using the generic Repository.Find you don't need to pass the type to the Query object constructor. |
|
|
Coincidentally I have to sort my stuff anyway :) So for the moment I'm good |
|