Esempio n. 1
0
 /// <summary>
 /// Execute a set of entity
 /// </summary>
 /// <param name="conn"></param>
 /// <param name="cmdText"></param>
 /// <param name="parameters"></param>
 /// <param name="commandType"></param>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public static Task <IEnumerable <T> > ExecuteEntitiesAsync <T>(this MySqlConnection conn, string cmdText, MySqlParameter[] parameters, CommandType commandType)
     where T : new()
 {
     conn.CheckNull(nameof(conn));
     return(conn.ExecuteEntitiesAsync <T>(cmdText, parameters, commandType, null));
 }
Esempio n. 2
0
 /// <summary>
 /// Execute a set of entity
 /// </summary>
 /// <param name="conn"></param>
 /// <param name="cmdText"></param>
 /// <param name="commandType"></param>
 /// <param name="transaction"></param>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public static Task <IEnumerable <T> > ExecuteEntitiesAsync <T>(this MySqlConnection conn, string cmdText, CommandType commandType, MySqlTransaction transaction)
     where T : new()
 {
     conn.CheckNull(nameof(conn));
     return(conn.ExecuteEntitiesAsync <T>(cmdText, null, commandType, transaction));
 }