/// <summary>
 /// Execute 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 T ExecuteEntity <T>(this NpgsqlConnection conn, string cmdText, CommandType commandType, NpgsqlTransaction transaction) where T : new()
 {
     conn.CheckNull(nameof(conn));
     return(conn.ExecuteEntity <T>(cmdText, null, commandType, transaction));
 }
 /// <summary>
 /// Execute 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 T ExecuteEntity <T>(this NpgsqlConnection conn, string cmdText, NpgsqlParameter[] parameters, CommandType commandType) where T : new()
 {
     conn.CheckNull(nameof(conn));
     return(conn.ExecuteEntity <T>(cmdText, parameters, commandType, null));
 }