protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); string schema = "Contoso"; if (OperatingSystem.IsMacOs()) { schema = null; } var config = new DbContextConfig(); config.SecureApplicationContextConfig(modelBuilder, schema); config.ApplicationContextConfig(modelBuilder, schema); }