Beispiel #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";
 }
Beispiel #2
0
 public RawDb(ConcurrentRandom random, DbProviderFactory dbProviderFactory)
 {
     _random            = random;
     _dbProviderFactory = dbProviderFactory;
     OnCreateCommand();
 }
 public RawDb(ConcurrentRandom random, AppSettings appSettings)
 {
     _random           = random;
     _connectionString = appSettings.ConnectionString;
 }
Beispiel #4
0
 public RawDb(ConcurrentRandom random, DbProviderFactory dbProviderFactory, AppSettings appSettings)
 {
     _random            = random;
     _dbProviderFactory = dbProviderFactory;
     _connectionString  = appSettings.ConnectionString;
 }