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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -