SQlServer 2012+
Inheritance: DbProvider
Example #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
     });
 }
Example #2
0
 public SqlServer2012Tests()
 {
     _sut=new SqlServer2012Provider(Empty.Func<DbConnection>());
 }