SQlServer 2012+
Inheritance: DbProvider
Esempio n. 1
0
 static IDbFactory GetFactory(string cnxString)
 {
     cnxString.MustNotBeEmpty("We need a valid connection string");
     var provider = new SqlServer2012Provider(SqlClientFactory.Instance.CreateConnection);
     return new DbFactory(new DbAccessProfile()
     {
         ConnectionString = cnxString,
         Name = "dbussql",
         Provider = provider
     });
 }
Esempio n. 2
0
 public SqlServer2012Tests()
 {
     _sut=new SqlServer2012Provider(Empty.Func<DbConnection>());
 }