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