simple count in Linq

How to do a simple count in Linq?

Query as given below for the same.

var count = (from x in yourtableView select x).Count();


base.Context.yourtableView.Where(x => x.ID == ID).Count();


Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - and
My Books - Google Amazon and Flipkart Book Store!

You Might Also Like
Post a Comment Powered by Blogger.
ASK Questions
SQL Server NodeJs TypeScript JavaScript Angular SQL Server My Book