using CoviDok.Data.Model; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CoviDok.Data.MySQL { public class MySqlContext : DbContext { public static string MySqlString; public DbSet<Assistant> Assistants { get; set; } public DbSet<Doctor> Doctors { get; set; } public DbSet<Parent> Parents { get; set; } public DbSet<Child> Children { get; set; } public DbSet<Case> Cases { get; set; } public DbSet<Update> Updates { get; set; } public DbSet<RoleUser> RoleUsers { get; set; } public DbSet<Image> Images { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { //optionsBuilder.UseMySQL("server=mysql;database=covidok;user=covidok;password=covidok"); optionsBuilder.UseMySQL(MySqlString); } } }