© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
51 replies
Cyclomatic

Naming conventions with Dto

I've got a PatientDto and it has an Id in it from entity core. Sometimes I want a PatientDto without an Id, i.e. if I've got an endpoint GetPatientById(int id) there isn't much point in returning the Id. Should I just returning it anyway and avoid the hassle or should i have a different dto?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Next page

Similar Threads

Class Naming Conventions
C#CC# / help
3y ago
Naming conventions [Answered]
C#CC# / help
4y ago
❔ Naming Conventions N-Tier architecture, conflicts?
C#CC# / help
3y ago
Advice needed: Endpoint and method naming conventions
C#CC# / help
2y ago