public static async Task Main() { IConfigurationRoot config = ConfigurationBuilder.Create(Directory.GetCurrentDirectory()); await EntityFrameworkInitializer.InitializeAsync <PaymentDbContext>( config, "GSP.Payment.Data.Migrations", SettingKeyConstants.AzureSqlConnectionKey); }
public static async Task Main() { IConfigurationRoot configuration = ConfigurationBuilderHelper.Create(Directory.GetCurrentDirectory()); await EntityFrameworkInitializer.InitializeAsync <OnlineChatServiceDbContext>(configuration, "OCS.DAL.EF.Migrations"); }