/// <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); }
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); }
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; }
/// <summary> /// 创建sql适配器 /// </summary> /// <returns></returns> public ISqler Sqler(bool pfx) { Sqler sqler = new Sqler(Provider, Progress, pfx); return(sqler); }
/// <summary> /// 创建sql适配器 /// </summary> /// <returns></returns> public ISqler Sqler() { Sqler sqler = new Sqler(Provider, Progress); return(sqler); }
public Inserter(Sqler sqler) { this.dbProvider = sqler.DbProvider; this.sqler = sqler; }