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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -