コード例 #1
0
 public DbConnection Create(DbConnection db = null)
 {
     if (db != null)
     {
         return(new SqlFuConnection(_provider, db, SqlFuManager.Config.TransientErrorsStrategyFactory));
     }
     return(SqlFuManager.OpenConnection(_provider, _connectionString));
 }
コード例 #2
0
 public DbConnection Create(DbConnection db = null)
 {
     if (db != null)
     {
         return(new SqlFuConnection(db, _provider));
     }
     return(SqlFuManager.OpenConnection(_provider, _connectionString));
 }
コード例 #3
0
 public DbConnection Create(DbConnection db = null)
 {
     if (db == null)
     {
         return(SqlFuManager.OpenConnection(_provider, _connectionString));
     }
     if (db is SqlFuConnection)
     {
         return(db);
     }
     return(new SqlFuConnection(_provider, db, Configuration));
 }
コード例 #4
0
 public DbConnection Create(string cnxString)
 {
     return(SqlFuManager.OpenConnection(_provider, cnxString ?? _connectionString));
 }