public List <InterfaceLogDetail> SelectAll(int start, int length, List <WhereClause> Where, List <OrderByClause> OrderBy) { SelectQueryBuilder Sqb = new SelectQueryBuilder(); Sqb.SelectAllColumns(); if (start > 0 || length > 0) { if (start == 0) { Sqb.TopRecords = length; } else { Sqb.LimitRecords(start, length); } } Sqb.SelectFromTable("InterfaceLogDetail"); if (Where != null) { foreach (WhereClause Item in Where) { Sqb.AddWhere(Item); } } if (OrderBy != null) { foreach (OrderByClause Item in OrderBy) { Sqb.AddOrderBy(Item); } } DataTable dt = LoadByQueryBuilder(Sqb); List <InterfaceLogDetail> Res = new List <InterfaceLogDetail>(); foreach (DataRow Dr in dt.Rows) { InterfaceLogDetail Item = new InterfaceLogDetail(); Item.ExecCommand.Load(Dr); Res.Add(Item); } return(Res); }
internal InterfaceLogDetail_Command(string ConnectionStr, InterfaceLogDetail obj_InterfaceLogDetail) { this._InterfaceLogDetail = obj_InterfaceLogDetail; this._DBHelper = new DBHelper(ConnectionStr, null); }
internal InterfaceLogDetail_Command(InterfaceLogDetail obj_InterfaceLogDetail) { this._InterfaceLogDetail = obj_InterfaceLogDetail; this._DBHelper = new DBHelper(); }