예제 #1
0
 /// <summary>
 /// 初始化一个新 <see cref="SetBuilder&lt;T&gt;" /> 实例。
 /// </summary>
 /// <param name="db">数据库实例</param>
 public SetBuilder(Database db)
 {
     context = new BuilderContext(db, new List <object>());
     set     = new UpdateBuilder <T>(context);
 }
예제 #2
0
 /// <summary>
 /// 初始化一个新 <see cref="SetBuilder&lt;T&gt;" /> 实例。
 /// </summary>
 /// <param name="db">数据库实例</param>
 public SetBuilder(Database db)
 {
     __db        = db;
     this.Params = new List <object>();
     __set       = new UpdateBuilder <T>(db, this.Params);
 }