Exemple #1
0
 public async Task <int> CreateAndRunUpdateAsync(string table, string where, string[] fields, params object[] values)
 {
     return(await OdbcCommands.CreateUpdate(await ConnectAsync(), table, where, fields, values).ExecuteNonQueryAsync());
 }
Exemple #2
0
 public async Task <int> CreateAndRunInsertAsync(object[] values, string table, string fields)
 {
     return(await OdbcCommands.CreateInsert(await ConnectAsync(), table, SqlUtility.ToArrayFromCommas(fields), values).ExecuteNonQueryAsync());
 }
Exemple #3
0
 public async Task <int> CreateAndRunDeleteAsync(string table, string where)
 {
     return(await OdbcCommands.CreateDelete(await ConnectAsync(), table, where).ExecuteNonQueryAsync());
 }
Exemple #4
0
        public async Task <ConnectedOdbcDataReader> CreateAndRunCommandAsync(string command, params string[] args)
        {
            OdbcConnection connection = await ConnectAsync();

            return(await RunCommandAsync(connection, OdbcCommands.CreateCommand(connection, command, args)));
        }