using Microsoft.EntityFrameworkCore;


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

        public DbSet<RestAPI2.Models.House> House { get; set; }
        public DbSet<RestAPI2.Models.Apartment> Apartments { get; set; }
        public DbSet<RestAPI2.Models.Resident> Residents { get; set; }
    }
}