I am using the DTO template to generate DTO classes when needed, however, I cannot find an option to initialize the related properties (mainly when they are lists) from the constructor.
Is there a way to do that?
For example, something like this:
Code: Select all
public partial class ModelDto
{
public ModelDto()
{
this.CollectionExample= new List<CollectionExampleDTO>();
}
public List<CollectionExampleDTO> CollectionExample{ get; set; }
}