Open progala2 opened 3 years ago
To start simple - an entity is simple when has only one property/field. It's a false assumption, because this one property may be of a type that is sophisticated itself, but it'll be easy to implement and should cover most of the cases.
The golden sample
the source generator should have possibility to generate as follows: Source:
Output:
Detecting entities to generate builders
Namespace rule
To prevent generating wrongly builders for build-in types, or types from external libraries, the buildenator will detect subentities by the same root namespace of the parent entity.
e.x. this is correct:
this is not correct:
Filtering out value types
By default if the subentity has only one not sophisticated property/contr. parameter, it will be treated as a value type, so no additional builders will be created.
Configurability
Known problems and challenges
For the future