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

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