namespace Hospital.Data.Migrations
{
    using Common;
    using System.Data.Entity.Migrations;

    public sealed class Configuration : DbMigrationsConfiguration<ApplicationDbContext>
    {
        public Configuration()
        {
            this.AutomaticMigrationsEnabled = true;
            this.AutomaticMigrationDataLossAllowed = true;
        }

        
        protected override void Seed(ApplicationDbContext context)
        {
            var seeds = new Seed();

            seeds.SeedAdminAndPatients(context);
            seeds.SeedDoctorsClinicalTrialsAndSpecialties(context);
        }
    }
}
