Base solution for your next web application
Open Closed

Conventional dto names #8564


User avatar
0
murat.yuceer created

Hello,

When i use radtool or when i research your codes , i see sometimes you set naming xxxDto or xxxOutput, what are the differences between them? When you use dto or output?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @murat.yuceer

    We use *Dto for entity equivalent classes and *Output for app service return types. *Output should only be used for app service return types but *Dto can be used inside AppService classes.

  • User Avatar
    0
    murat.yuceer created

    Hi I mean for example power tool generated like below, why GetPersonHealthForViewDto but GetPersonHealthForEditOutput

    public class GetPersonHealthForViewDto
    {
    	public PersonHealthDto PersonHealth { get; set; }
    
    	public string PersonName { get; set;}
    }
    
    public class GetPersonHealthForEditOutput
    {
    	public CreateOrEditPersonHealthDto PersonHealth { get; set; }
    
    	public string PersonName { get; set;}
    
    }
    
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @murat.yuceer

    Sorry for my late reply. Could you share where GetPersonHealthForViewDto is used ?