using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; using TenantACustomisations.ExternalServices; using TenantACustomisations.IntegrationEvents.Events; namespace TenantACustomisations.Database { public class TenantAContext : DbContext { public TenantAContext(DbContextOptions options) : base(options) { } public DbSet ShippingInformation { get; set; } public DbSet SavedEvent { get; set; } } public class TenantAContextDesignFactory : IDesignTimeDbContextFactory { public TenantAContext CreateDbContext(string[] args) { var optionsBuilder = new DbContextOptionsBuilder() .UseSqlServer("Server=.;Initial Catalog=Microsoft.eShopOnContainers.Services.TenantADb;Integrated Security=true"); return new TenantAContext(optionsBuilder.Options); } } }