entity framework get count of rows in all tables code example
Example: entity framework return count of records
var count = (from o in context.MyContainer
where o.ID == '1'
from t in o.MyTable
select t).Count();