using VetClinicDataBaseImplement.Models;
using Microsoft.EntityFrameworkCore;

namespace VetClinicDataBaseImplement
{
    public class VetClinicDatabase : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            if (optionsBuilder.IsConfigured == false)
            {
                optionsBuilder.UseSqlServer(@"Data Source=localhost\SQLEXPRESS02;Initial Catalog=DinerDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
            }
            base.OnConfiguring(optionsBuilder);
        }
        //public virtual DbSet<Animal> Animals { set; get; }
       public virtual DbSet<Admin> Admins { set; get; }
       // public virtual DbSet<Visit> Visits { set; get; }
       // public virtual DbSet<Vaccination> Vaccinations { set; get; }
    }
}
