示例#1
0
        /// <summary>
        /// 创建sql适配器
        /// </summary>
        /// <param name="timeout">超时时间</param>
        /// <param name="pfx">前缀</param>
        /// <returns></returns>
        public ISqler Sqler(int timeout, bool pfx)
        {
            this.TimeOut = timeout;
            Sqler sqler = new Sqler(Provider, Progress, pfx);

            return(sqler);
        }
示例#2
0
 public Grouper(Sqler sqler, EntityHelper helper, Conditions <T> query, params string[] fields)
 {
     this.sqler  = sqler;
     this.query  = query;
     this.helper = helper;
     this.fields = fields;
     this.seq    = new GSequencer <T>(this);
 }
示例#3
0
 public ObjectEntity(Sqler sqler, string tableName)
 {
     this.db        = sqler.DbProvider;
     this.cond      = new Conditions <T>(this);
     this.seq       = new Sequencer <T>(this);
     this.SqlHelper = new EntityHelper(this.db, typeof(T), tableName);
     this.sqler     = sqler;
 }
示例#4
0
        /// <summary>
        /// 创建sql适配器
        /// </summary>
        /// <returns></returns>
        public ISqler Sqler(bool pfx)
        {
            Sqler sqler = new Sqler(Provider, Progress, pfx);

            return(sqler);
        }
示例#5
0
        /// <summary>
        /// 创建sql适配器
        /// </summary>
        /// <returns></returns>
        public ISqler Sqler()
        {
            Sqler sqler = new Sqler(Provider, Progress);

            return(sqler);
        }
示例#6
0
 public Inserter(Sqler sqler)
 {
     this.dbProvider = sqler.DbProvider;
     this.sqler      = sqler;
 }