コード例 #1
0
 /// <summary>
 /// Register the MS implementation of IParameterBuilder, SchemaWriter and QuerySet for the
 /// database associated with the specified type.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 public static void Register <T>() where T : Dao
 {
     Register(Db.For <T>().ServiceProvider);
 }
コード例 #2
0
 /// <summary>
 /// Register the MS implementation of IParameterBuilder, SchemaWriter and QuerySet for the
 /// database associated with the specified type.
 /// </summary>
 public static void Register(Type daoType)
 {
     Register(Db.For(daoType).ServiceProvider);
 }
コード例 #3
0
 public DaoTransaction BeginTransaction(Type type)
 {
     return(Db.BeginTransaction(type));
 }
コード例 #4
0
 /// <summary>
 /// Register the MS implementation of IParameterBuilder, SchemaWriter and QuerySet for the
 /// database associated with the specified connectionName.
 /// </summary>
 public static void Register(string connectionName)
 {
     Register(Db.For(connectionName).ServiceProvider);
 }
コード例 #5
0
 public DaoTransaction BeginTransaction <T>() where T : Dao
 {
     return(Db.BeginTransaction <T>());
 }