Int count = (From employee in db.employeedetails Select employee.CompanyName).Count();
Linq
Lambda Expression
items1.Select(p => p).Count();
Int count = (From cust in db.Customers Select cust.CompanyName).Count();
MyDatabaseEntities context = new MyDatabaseEntites(); int recordCount = context.MyEntityObject.Count();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)