コード例 #1
0
ファイル: DbCommonFactory.cs プロジェクト: wushunming/UMC.NET
        /// <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
ファイル: Grouper.cs プロジェクト: wushunming/UMC.Data
 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
ファイル: ObjectEntity.cs プロジェクト: wushunming/UMC.NET
 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
ファイル: DbCommonFactory.cs プロジェクト: wushunming/UMC.NET
        /// <summary>
        /// 创建sql适配器
        /// </summary>
        /// <returns></returns>
        public ISqler Sqler(bool pfx)
        {
            Sqler sqler = new Sqler(Provider, Progress, pfx);

            return(sqler);
        }
コード例 #5
0
ファイル: DbCommonFactory.cs プロジェクト: wushunming/UMC.NET
        /// <summary>
        /// 创建sql适配器
        /// </summary>
        /// <returns></returns>
        public ISqler Sqler()
        {
            Sqler sqler = new Sqler(Provider, Progress);

            return(sqler);
        }
コード例 #6
0
ファイル: Inserter.cs プロジェクト: wushunming/UMC.NET
 public Inserter(Sqler sqler)
 {
     this.dbProvider = sqler.DbProvider;
     this.sqler      = sqler;
 }