예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Engine"/> class.
 /// </summary>
 public Engine()
 {
     Migrations = new Dictionary<long, Type>();
     SqlProviderFactory = new SqlProviderFactory();
     HistoryRepository = new MigrationHistoryRepository();
     SqlProcessor = new DatabaseSqlProcessor();
 }
예제 #2
0
 /// <summary>
 /// Sets the SQL provider factory.
 /// </summary>
 /// <param name="factory">The SQL provider factory.</param>
 /// <returns>The engine.</returns>
 public virtual Engine SetSqlProviderFactory(SqlProviderFactory factory)
 {
     SqlProviderFactory = factory;
     return this;
 }
예제 #3
0
 public void SetSqlProviderFactoryTest()
 {
     SqlProviderFactory pf = new SqlProviderFactory();
     Target.SetSqlProviderFactory(pf);
     Assert.AreEqual(pf, Target.SqlProviderFactory);
 }