using System.Data.Entity;

namespace CustomMigrationHistory.Context
{
    /// <summary>
    /// This class is used to make EF aware of it by registering
    /// Custom Migration History via code-based configuration:
    /// </summary>
    public class PSQLDbCpnfiguration : DbConfiguration
    {
        public PSQLDbCpnfiguration()
        {
            this.SetHistoryContext("Pervasive.Data.SqlClient", (connection, defaultSchema) => new CustomHistoryContext(connection, defaultSchema));
        }
    }
}
