コード例 #1
0
 /// <summary>
 /// Execute DataSet async
 /// </summary>
 /// <param name="conn"></param>
 /// <param name="cmdText"></param>
 /// <param name="commandType"></param>
 /// <param name="transaction"></param>
 /// <returns></returns>
 public static Task <DataSet> ExecuteDataSetAsync(this MySqlConnection conn, string cmdText, CommandType commandType, MySqlTransaction transaction)
 {
     conn.CheckNull(nameof(conn));
     return(conn.ExecuteDataSetAsync(cmdText, null, commandType, transaction));
 }
コード例 #2
0
 /// <summary>
 /// Execute DataSet async
 /// </summary>
 /// <param name="conn"></param>
 /// <param name="cmdText"></param>
 /// <param name="parameters"></param>
 /// <param name="commandType"></param>
 /// <returns></returns>
 public static Task <DataSet> ExecuteDataSetAsync(this MySqlConnection conn, string cmdText, MySqlParameter[] parameters, CommandType commandType)
 {
     conn.CheckNull(nameof(conn));
     return(conn.ExecuteDataSetAsync(cmdText, parameters, commandType, null));
 }
コード例 #3
0
 /// <summary>
 /// Execute DataSet async
 /// </summary>
 /// <param name="conn"></param>
 /// <param name="cmdText"></param>
 /// <returns></returns>
 public static Task <DataSet> ExecuteDataSetAsync(this MySqlConnection conn, string cmdText)
 {
     conn.CheckNull(nameof(conn));
     return(conn.ExecuteDataSetAsync(cmdText, null, CommandType.Text, null));
 }