Example #1
0
 public void ExecuteCreateTwice()
 {
     using (var connection = connectionManager.BuildNonContextual())
     {
         connection.Open();
         connection.ExecuteCommand(OutboxScriptBuilder.BuildCreateScript(sqlDialect), GetTablePrefix(), schema: schema);
         connection.ExecuteCommand(OutboxScriptBuilder.BuildCreateScript(sqlDialect), GetTablePrefix(), schema: schema);
     }
 }
    public static Task <DbConnection> OpenNonContextualConnection(this IConnectionManager connectionManager, CancellationToken cancellationToken = default)
    {
        var connection = connectionManager.BuildNonContextual();

        return(OpenConnection(connection, cancellationToken));
    }
    public static Task <DbConnection> OpenNonContextualConnection(this IConnectionManager connectionManager)
    {
        var connection = connectionManager.BuildNonContextual();

        return(OpenConnection(connection));
    }