using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyModel; using Microsoft.Extensions.Logging; using SqlSugar; using System; using System.Linq; using System.Reflection; using System.Runtime.Loader; using LM.Core.DBManager; using LM.Core.DbSqlSugar; using LM.Core.Extensions; using LM.Core.Extensions.AutofacManager; using LM.Entity.SystemModels; namespace LM.Core.DbContext { public class VOLContext : DbContext, IDependency { public VOLContext() : base() { base.SqlSugarClient = DbManger.Db; } public VOLContext(string configId) : base() { base.SqlSugarClient = DbManger.GetConnection(configId); } } }