IQueryable<tbl_holidays> holdaysQuery = from objsel in objLMS.tbl_Holidays select objsel; IList<tbl_holidays>lstholidays = holdaysQuery.ToList(); foreach (tbl_Holidays objhol in lstholidays) { } this is my table DataTable holidaysdt = new DataTable(); holidaysdt.Columns.Add("ID", typeof(int)); holidaysdt.Columns.Add("Holiday Id", typeof(int)); holidaysdt.Columns.Add("Holiday Type", typeof(string)); holidaysdt.Columns.Add("Holiday", typeof(string)); holidaysdt.Columns.Add("Offilce Location", typeof(int)); holidaysdt.Columns.Add("Date", typeof(DateTime)); holidaysdt.Columns.Add("Remarks", typeof(string));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)