#if NET5_0_OR_GREATER using Microsoft.EntityFrameworkCore; namespace BITKit; public class MySQLContext:DbContext where T:class { protected readonly string _connectSql; protected DbSet context { get; private set; } public MySQLContext(string connectSql) : base() { _connectSql = connectSql; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseMySQL("_connectSql"); } } #endif