using Microsoft.EntityFrameworkCore;
using FishFactoryDatabaseImplement.Models;

namespace FishFactoryDatabaseImplement
{
    public class FishFactoryDatabase : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            if (optionsBuilder.IsConfigured == false)
            {
                optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-OM38GNQ;Initial Catalog=FishFactoryDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
            }
            base.OnConfiguring(optionsBuilder);
        }

        public virtual DbSet<Ingredient> Ingredients { set; get; }

        public virtual DbSet<Canned> CannedList { set; get; }

        public virtual DbSet<CannedIngredient> CannedIngredients { set; get; }

        public virtual DbSet<Order> Orders { set; get; }

        public virtual DbSet<Client> Clients { set; get; }
		
		public virtual DbSet<Implementer> Implementers { set; get; }
		
		public virtual DbSet<Message> Messages { set; get; }
    }
}
