public DataTable GetInfo(int Id) { db = new DataClassesDataContext(); DataTable dt=new DataTable(); dt.Columns.Add("ID"); dt.Columns.Add("Name"); var query=db.spGetInf(id) .AsQueryable(); var reader = value.GetEnumerator(); while (reader.MoveNext()) { var rw =reader.Current; dt.Rows.Add(rw.Id, rw.name); } return dt; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)