protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.AddConfiguration(new ItemsDetailEFConfiguration()); modelBuilder.AddConfiguration(new ItemsEFConfiguration()); modelBuilder.AddConfiguration(new MenuButtonEFConfiguration()); modelBuilder.AddConfiguration(new ModuleEFConfiguration()); modelBuilder.AddConfiguration(new RoleAuthorizeEFConfiguration()); modelBuilder.AddConfiguration(new RoleEFConfiguration()); modelBuilder.AddConfiguration(new UserLogOnEFConfiguration()); modelBuilder.AddConfiguration(new UserEFConfiguration()); modelBuilder.AddConfiguration(new DbBackupEFConfiguration()); modelBuilder.AddConfiguration(new FilterIPEFConfiguration()); modelBuilder.AddConfiguration(new LogEFConfiguration()); modelBuilder.AddConfiguration(new MenuEFConfiguration()); modelBuilder.AddConfiguration(new OrganizeEFConfiguration()); modelBuilder.AddConfiguration(new PluginEFConfiguration()); modelBuilder.AddConfiguration(new TenantEFConfiguration()); //添加并配置第三方插件 EvolutionPluginManager.AddPluginEFModle(modelBuilder); base.OnModelCreating(modelBuilder); }