Top "Dto" questions

DTO is an acronym for Data Transfer Object, a design pattern used in data transfer.

ApiController vs ODataController when exposing DTOs

Can someone explain me when I should inherit my controller form ODataController vs ApiController ? The question is caused by the …

.net asp.net-web-api odata dto asp.net-apicontroller
Python: Quick and dirty datatypes (DTO)

Very often, I find myself coding trivial datatypes like class Pruefer: def __init__(self, ident, maxNum=float('inf'), name=""): self.…

python dto
Domain vs DTO vs ViewModel - How and When to use them?

In a Multi-layer project with Domain layer (DL)/Business (Service) Layer (BL)/Presentation Layer (PL), what is the best approach …

asp.net-mvc entity-framework viewmodel automapper dto
Same/different DTO object in create, update and get rest end points?

Consider following UserDTO class and UserController exposing endpoints to create, update and get User. Having the id property in the …

java rest spring-mvc dto content-negotiation
Should i use builder pattern in DTO?

This might be a pretty subjetive question, but i would to know some more opinions. I've built a Rest API …

java design-patterns dto data-transfer-objects builder-pattern
How to work with DTO in Spring Data REST projects?

Spring Data REST automates exposing only domain object. But most often we have to deal with Data Transfer Objects. So …

spring spring-data-rest projection dto
AutoMapper flattening of nested mappings asks for a custom resolver

I'm somewhat new to AutoMapper and wanted to map a POCO-ish object to a perhaps more complex DTO, the latter …

.net mapping automapper dto
DTO and mapper generation from Domain Objects

I have plenty of java domain objects that I need to transform to DTOs. Please, don't start with the anti-pattern …

java code-generation mapping dto
What is the best practice for sending data to the client: POCO or DTO?

I'm starting a project using EF 4 and POCO. What is the best practice for sending data to the client ? Should …

c# .net entity-framework-4 poco dto
Is This How to Create a Data Transfer Object (DTO) with Entity Framework Core & ASP.NET Core MVC 2.2+ and 3.0

In creating a RESTful Api with ASP.NET Core MVC 2.2 I noticed there wasn't a a DTO example like the 2014 …

c# asp.net asp.net-core entity-framework-core dto