I have TransportChain and Transport tables, where Transport.IdTransportChain is fk to TransportChain.IdTransportChain
var tc = new TransportChainCollection();
var predicate = TransportFields.CodeSeason == 10;
var relation = new RelationCollection(TransportEntity.Relations.TransportChainEntityUsingIdTransportChain);
tc.GetMulti(predicate, relation);
int count = tc.Count;
int dbCount = tc.GetDbCount(predicate, relation);
count and dbCount are not the same, dbCount is much bigger. Why?
defining relations as
var relation = new RelationCollection(Ares.LLBL.EntityClasses.TransportChainEntity.Relations.TransportEntityUsingIdTransportChain);
results to the same counts as in previous code.
value of count is the one I need, dbCound in invalid in this case.
I need to get count of elements, that should be exactly the same as if i called GetMulti. I need this to implement pager.
using llbl v2.6 / SelfServicing