ConstructValueRef

Corresponds to the dorm.annotations.constructValue and dorm.annotations.constructValue UDAs.

A global function that is compiled into the executable through the call of dorm.declarative.processModelsToDeclarations generating the InternalAnnotation values. Manually constructing this function is not required, use the dorm.declarative.entrypoint.RegisterModels mixin instead.

The functions take in a Model (class) instance and assert it is the correct model class type that it was registered with.

struct ConstructValueRef {}

Members

Variables

rid
string rid;

This function calls the UDA specified lambda without argument and sets the annotated field value inside the containing Model instance to its return value, with the code assuming it can simply assign it. (a compiler error will occur if it cannot implicitly convert to the annotated property type)

Meta