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