set

Set aggregate's public field to passed arg.

Configures aggregate's factory to set specified field to passed arg. The function will check if passed argument is type compatible with specified field. The argument can be a reference as well. In case of argument being reference to another data in container, no type compatiblity checking will be done.

Params factory = the factory which will be configured to set property. arg = the value of property to be set, or reference to data in container.

  1. auto set(MetadataDecoratedGenericFactory!T factory, Args args)
  2. auto set(MetadataDecoratedGenericFactory!T factory, Arg arg)
    set
    (
    string property
    T
    Arg
    )
    if (
    isField!(T, property)
    )

Return Value

Type: auto

MetadataDecoratedGenericFactory!T.

Meta