python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
C# MediatR: Return nested/compound DTO
I want to return a compound/nested DTO SearchDto which includes Status(timeMs, resultsFound) and List<SearchResult>.
Example JSON DTO
{
status: {
timeMs: 0.038583,
found: 728,
...
Luke Martin
Votes: 0
Answers: 1
Why am I obtaining this MappingException trying to convert an Hibernate entity class instance into its DTO class instance?
I am working on a Spring Boot using Spring Data JPA and Hibernate mapping application and I am finding some difficulties trying to convert an instance of an entity class into its DTO version. Followin...
AndreaNobili
Votes: 0
Answers: 1
Use Entity in place of DTO inside reciever service
Basically i have this service A that sends a DTO to the service B.
What i did is the following:
1) B recieves the DTO from a.
2) B converts the DTO to an Entity
3) B uses the Entity (has an in-memory ...
Ray
Votes: 0
Answers: 0
imported class with class-validator annotration is not validated by Validation pipe
I have a simple nest controller with validation pipe decorator
import {GetCatDto} from 'my-shared-lib'
@Controller('myController')
export class MyController {
constructor(private readonly policyMa...

Lior Baber
Votes: 0
Answers: 1