using ConnectionResiliency.Model;
using System.Data.Entity;

namespace ConnectionResiliency.Context
{
    /// <summary>
    /// Context contains one table Employee
    /// </summary>
    public class PSQLDbContext : DbContext
    {
        public PSQLDbContext()
        {
            // Set Initializer
            // Drop and Create Database Always
            // This is to ensure we get a fresh database always we run this application
            Database.SetInitializer(new DropCreateDatabaseAlways<PSQLDbContext>());
        }

        public DbSet<Employee> Employees { get; set; }
    }
}
