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
|
I am doing UNION of an Entity, Using Query Object and try to apply pagination on it, but it is generating query with error, please help. |
|
|
Can you provide details of the error you are seeing?
|
|
|
Case 1: If I create a Query object for a single entity and apply pagination, it is working fine ex. var query1 = new Query(typeof(MyEntity1)); query1 .Page = Page.Offset(10).LimitTo(10); var response = unitOfWork.Find above code working perfectly Case 2: If I create 2 Query objects for a single entity, then apply pagination, it is not working var query1 = new Query(typeof(MyEntity1)); var query2 = new Query(typeof(MyEntity1)); query2 .ComposedQueries.Add(query1 ); query2 .Page = Page.Offset(10).LimitTo(10); var response = unitOfWork.Find above code is not working, it is throwing exception "RowNumber not found" ect. above are sample code only, if you could help me on this, will solve my issue. Thanks in advance |
|