public ENSubject Read(int idSubject) { cad = new CADSubject(); ENSubject ret = new ENSubject(); List <object> param = new List <object>(); param.Add((object)idSubject); ret.FromRow(cad.Select(param)); return(ret); }
public List <ENSubject> Filter(string where) { List <ENSubject> ret = new List <ENSubject>(); DataTable table = cad.SelectWhere(where); try { foreach (DataRow row in table.Rows) { ENSubject course = new ENSubject(); course.FromRow(row); ret.Add(course); } return(ret); } catch (Exception ex) { throw ex; } }
public virtual List <ENSubject> ReadAll() { List <ENSubject> ret = new List <ENSubject>(); DataTable table = cad.SelectAll(); try { foreach (DataRow row in table.Rows) { ENSubject course = new ENSubject(); course.FromRow(row); ret.Add(course); } return(ret); } catch (Exception ex) { throw ex; } }
public virtual List<ENSubject> ReadAll() { List<ENSubject> ret = new List<ENSubject>(); DataTable table = cad.SelectAll(); try { foreach (DataRow row in table.Rows) { ENSubject course = new ENSubject(); course.FromRow(row); ret.Add(course); } return ret; } catch (Exception ex) { throw ex; } }
public ENSubject Read(int idSubject) { cad = new CADSubject(); ENSubject ret = new ENSubject(); List<object> param = new List<object>(); param.Add((object)idSubject); ret.FromRow(cad.Select(param)); return ret; }
public List<ENSubject> Filter(string where) { List<ENSubject> ret = new List<ENSubject>(); DataTable table = cad.SelectWhere(where); try { foreach (DataRow row in table.Rows) { ENSubject course = new ENSubject(); course.FromRow(row); ret.Add(course); } return ret; } catch (Exception ex) { throw ex; } }