The premium version of MappingGenerator provides Advanced Object Scaffolder
module that allows for the customization of how the object initialization is scaffolded.
We have the following options at our disposal:
Option to choose value generator:
Dummy values
- use predefined constant values based on the typeRandom values
- randomly generated values based on the typeImplicit default values
- non-complex fields are assigned to default
keywordExplicit default values
- non-complex fields are assigned to default(T)
Local variables
- Use locally available symbols (local variables, method parameters, containing object members)Chose between new Type()
and new()
object creation syntax.
Limit nesting level (useful for scaffolding recursive types or large object graphs).
Define how many elements generate for collection initialization.
Control the order of the initialized properties.
Specify how lambda properties are generated.