public List <Payments_Accounts> 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("Payments_Accounts"); 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 <Payments_Accounts> Res = new List <Payments_Accounts>(); foreach (DataRow Dr in dt.Rows) { Payments_Accounts Item = new Payments_Accounts(); Item.ExecCommand.Load(Dr); Res.Add(Item); } return(Res); }
internal Payments_Accounts_Command(string ConnectionStr, Payments_Accounts obj_Payments_Accounts) { this._Payments_Accounts = obj_Payments_Accounts; this._DBHelper = new DBHelper(ConnectionStr, null); }
internal Payments_Accounts_Command(Payments_Accounts obj_Payments_Accounts) { this._Payments_Accounts = obj_Payments_Accounts; this._DBHelper = new DBHelper(); }