/// <inheritdoc/>
        public async override Task OpenAsync(System.Threading.CancellationToken cancellationToken)
        {
            await base.OpenAsync(cancellationToken).ConfigureAwait(false);

            await InnerConnection.ExecuteSqlAsync(_switchSchemaSql, cancellationToken).ConfigureAwait(false);
        }
Esempio n. 2
0
 /// <inheritdoc/>
 public override Task OpenAsync(System.Threading.CancellationToken cancellationToken)
 {
     return(base.OpenAsync(cancellationToken)
            .ContinueWith(t => InnerConnection.ExecuteSqlAsync(_switchSchemaSql), cancellationToken, TaskContinuationOptions.OnlyOnRanToCompletion, null)
            .Unwrap());
 }