using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;

namespace CoviDok.data
{
    public class MySQLContext : DbContext
    {
        public DbSet<Case> Cases { get; set; }
        public DbSet<Child> Children { get; set; }
        public DbSet<Doctor> Doctors { get; set; }
        public DbSet<Image> Images { get; set; }
        public DbSet<Parent> Parents { get; set; }
        public DbSet<Update> Updates { get; set; }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseMySQL("server=192.168.0.157;database=covidok;user=covidok;password=covidok");
        }
    }
}