c# - Why is my total record count zero? -
i can't understand why comptetuples 0.0 instead of 1003, knowing table related _db.appsmetiers has 1003 rows.
private monitoringdbcontext _db = new monitoringdbcontext(); double comptetuples; var model = _db.appsmetiers .orderby(x => x.nomapplication) .skip(nblignesdepassees) .take(nblignesretenues); comptetuples = (double)model.count() / 10;
comment out skip , take , compare results.
Comments
Post a Comment