Naming dto objects

I have a model object with the name Country:

class Country
{
    public string Name { get; set; }
    public string Code { get; set; }
    public Region[] Regions {get;set;}
    public URI[] Uris {get;set;}
}

and through WebService I want to get this country in several versions:

  • only name and code
  • every field
  • everyone served without uris
  • each field without a collection of regions

What names are given to them?

  • CountryNameWithCode
  • CountryWithoutUris
  • Country
  • CountryWithoutRegions?

This is for a customer in the UK. Sorry for my poor English.

+3
source share
2 answers

Here are my options:

  • CountryId / CountryIdentity / CountryRef / CountryEntry
  • Country / CountryDetails / CountyAllInfo
  • CountryWithRegions
  • CountryWithUris
+1
source

Country , ?

: (bool includeRegions, bool includeURIs)

+2

Source: https://habr.com/ru/post/1765080/


All Articles