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