using Microsoft.EntityFrameworkCore;


namespace RestAPI2.Data
{
    public class ResidentContext : DbContext
    {
        public ResidentContext (
            DbContextOptions<ResidentContext> options)
            : base(options)
        {
            Database.EnsureCreated();
        }

        public DbSet<RestAPI2.Models.Resident> Resident { get; set; }
    }
}