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 - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like Powered by Blogger.
ASK Questions