Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public static async Task AwaitDatabaseAsync()
 {
     await ConnectionAwaiter.AwaitConnectionAsync(ConnectionStrings.ServiceConnectionString());
 }
Exemple #4
0
 public static async Task AwaitDatabaseAsync()
 {
     await ConnectionAwaiter.AwaitConnectionAsync(ConnectionStrings.Master).ConfigureAwait(false);
 }