コード例 #1
0
 public RawDb(ConcurrentRandom random, DbProviderFactory dbProviderFactory)
 {
     _random            = random;
     _dbProviderFactory = dbProviderFactory;
     _connectionString  = "Server=tfb-database;Database=hello_world;User Id=benchmarkdbuser;Password=benchmarkdbpass;Maximum Pool Size=256;NoResetOnClose=true;Enlist=false;Max Auto Prepare=3";
     //_connectionString = "Server=192.168.2.19;Database=hello_world;User Id=benchmarkdbuser;Password=benchmarkdbpass;Maximum Pool Size=256;NoResetOnClose=true;Enlist=false;Max Auto Prepare=3";
 }
コード例 #2
0
 public RawDb(ConcurrentRandom random, DbProviderFactory dbProviderFactory)
 {
     _random            = random;
     _dbProviderFactory = dbProviderFactory;
     OnCreateCommand();
 }
コード例 #3
0
 public RawDb(ConcurrentRandom random, AppSettings appSettings)
 {
     _random           = random;
     _connectionString = appSettings.ConnectionString;
 }
コード例 #4
0
 public RawDb(ConcurrentRandom random, DbProviderFactory dbProviderFactory, AppSettings appSettings)
 {
     _random            = random;
     _dbProviderFactory = dbProviderFactory;
     _connectionString  = appSettings.ConnectionString;
 }