コード例 #1
0
        public List <Document_SpecialLines> 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("Document_SpecialLines");
            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 <Document_SpecialLines> Res = new List <Document_SpecialLines>();

            foreach (DataRow Dr in dt.Rows)
            {
                Document_SpecialLines Item = new Document_SpecialLines();
                Item.ExecCommand.Load(Dr);
                Res.Add(Item);
            }

            return(Res);
        }
コード例 #2
0
 internal Document_SpecialLines_Command(string ConnectionStr, Document_SpecialLines obj_Document_SpecialLines)
 {
     this._Document_SpecialLines = obj_Document_SpecialLines;
     this._DBHelper = new DBHelper(ConnectionStr, null);
 }
コード例 #3
0
 internal Document_SpecialLines_Command(Document_SpecialLines obj_Document_SpecialLines)
 {
     this._Document_SpecialLines = obj_Document_SpecialLines;
     this._DBHelper = new DBHelper();
 }