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