Пример #1
0
 /// <summary>
 /// Sets the database driver.
 /// </summary>
 /// <param name="dbSpecification">The db specification.</param>
 public void SetDatabaseDriver(DbDriverConfiguration dbSpecification)
 {
     connectionFactoryDesc = new DbDriverFactoryConnection(dbSpecification);
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DbDriverFactoryConnection"/> class.
 /// </summary>
 /// <param name="dbSpecification">The db specification.</param>
 public DbDriverFactoryConnection(DbDriverConfiguration dbSpecification)
 {
     _driver            = ResolveDriverFromName(dbSpecification.DriverName);
     _driver.Properties = dbSpecification.Properties;
 }