Ramco Ramco

Ramco Ramco

  • 440
  • 3.4k
  • 529.6k

Return count of records

Jul 30 2022 12:09 PM

Hi

   In below Linq query i want to return no of records

var CostCenter = (from t in context.CostCenter
                                    where t.CostCenterID == Convert.ToInt32(colum[5].ToString())
                                    select t.CostCenter).FirstOrDefault();

Thanks


Answers (1)