/// <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(); }
/// <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; }
public void SetSqlProviderFactoryTest() { SqlProviderFactory pf = new SqlProviderFactory(); Target.SetSqlProviderFactory(pf); Assert.AreEqual(pf, Target.SqlProviderFactory); }