﻿using DemoWebApp.DAL.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DemoWebApp.DAL.EFContexts
{
    public class EFDbContext : DbContext
    {
        public DbSet<Employee> Employees { get; set; }

        static EFDbContext()
        {
            Database.SetInitializer<EFDbContext>(new EFDbInitializer());
        }
        public EFDbContext()
        { }
        public EFDbContext(string connString)
            : base("DefaultConnection")
        {
            
        }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        } 
    }

}
