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:)
Ex :
int VenueCount = datatable.AsEnumerable().Count(p => p.Field<string>("columname") == svalue);
Where,
svalue is a varaible contain string
Happy Coding:)
No comments:
Post a Comment