Example #1
0
        public async Task Exec(IExprExec statement)
        {
            this.CheckDisposed();
            var sql = this._sqlExporter.ToSql(statement);

            var command = await this.CreateCommand(sql);

            try
            {
                await command.ExecuteNonQueryAsync();
            }
            catch (Exception e)
            {
                throw new SqDatabaseCommandException(sql, e.Message, e);
            }
        }
Example #2
0
 public Task Exec(IExprExec statement)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public static Task Exec(this IExprExec query, ISqDatabase database)
 => database.Exec(query);