Tuesday, 31 March 2015

How to get count of rows based on column using LINQ in C#?

In this Post, Get count of rows using LINQ in C# based on column.

Ex :
int VenueCount = datatable.AsEnumerable().Count(p => p.Field<string>("columname") == svalue);

Where,

svalue is a varaible contain string


Happy Coding:)