public static async Task CreateAsync() { await ConnectionAwaiter.AwaitConnectionAsync(ConnectionStrings.Master, 30).ConfigureAwait(false); await SqlRunner.ExecuteAsync(ConnectionStrings.Master, $"CREATE DATABASE [{DataConstants.DatabaseName}]").ConfigureAwait(false); await BuildDatabaseAsync().ConfigureAwait(false); }
private static async Task BuildDatabaseAsync() { await ConnectionAwaiter.AwaitConnectionAsync(ConnectionStrings.GPitFuturesSetup, 30).ConfigureAwait(false); await SqlRunner.ExecuteAsync(ConnectionStrings.GPitFuturesSetup, Properties.Resources.User).ConfigureAwait(false); await SqlRunner.ExecuteAsync(ConnectionStrings.GPitFuturesSetup, Properties.Resources.Create).ConfigureAwait(false); await SqlRunner.ExecuteAsync(ConnectionStrings.GPitFuturesSetup, Properties.Resources.ReferenceData).ConfigureAwait(false); }
public static async Task AwaitDatabaseAsync() { await ConnectionAwaiter.AwaitConnectionAsync(ConnectionStrings.ServiceConnectionString()); }
public static async Task AwaitDatabaseAsync() { await ConnectionAwaiter.AwaitConnectionAsync(ConnectionStrings.Master).ConfigureAwait(false); }