public static DbContextOptions <PaymentGatewayContext> Get() { var builder = new DbContextOptionsBuilder <PaymentGatewayContext>(); DbContextConfigurator.Configure(builder); return(builder.Options); }
public PaymentGatewayContext CreateDbContext(string[] args) { var builder = new DbContextOptionsBuilder <PaymentGatewayContext>(); DbContextConfigurator.Configure(builder); return(new PaymentGatewayContext(builder.Options)); }