This question is locked. New answers and comments are not allowed.
Hi again (I'm asking quite a few questions today)
I've noticed that whilst running RIA with OA, the total entity count does not quite return correctly.
e.g. I have my Domaindatasource_loadingdata event do this:
e.Query.IncludeTotalCount = true;
But no matter what I do, it always returns the total entitycount==entitycount
(e.g. If i query 3/100 , it says the total is 3 rather then 100)
(This feature works fine on ADO, but no on AO, both using an MS SQL express db)
(With out the total entity count, the paging, max page count will always be wrong, which causes other issues as well)
(*edit* Also, it does not cache correctly, e.g. from page 1, goto page 2 then 3, then back to 2, it should be cached but it isn't, I suspect this is related to the total entity count thou, as page 1 seems to cache fine)
I've noticed that whilst running RIA with OA, the total entity count does not quite return correctly.
e.g. I have my Domaindatasource_loadingdata event do this:
e.Query.IncludeTotalCount = true;
But no matter what I do, it always returns the total entitycount==entitycount
(e.g. If i query 3/100 , it says the total is 3 rather then 100)
(This feature works fine on ADO, but no on AO, both using an MS SQL express db)
(With out the total entity count, the paging, max page count will always be wrong, which causes other issues as well)
(*edit* Also, it does not cache correctly, e.g. from page 1, goto page 2 then 3, then back to 2, it should be cached but it isn't, I suspect this is related to the total entity count thou, as page 1 seems to cache fine)