EntityPropertyProjector Properties |
The EntityPropertyProjector type exposes the following members.
Name | Description | |
---|---|---|
AlternativeValueProducer |
Gets or sets the alternative value producer. Only used if ValueFilter is set to a valid filter and that filter resolves to false for the
entity passed into ProjectEntityProperty.
| |
DefaultValueProducer |
Gets or sets the default value producer. This object produces the value returned by ProjectEntityProperty if ValueFilter isn't set or resolves to true
for the entity passed into ProjectEntityProperty.
| |
ProjectedResultName |
Name for the projection result. Projection result consumers can use this name to further handle the projection result.
| |
SetUsingCTorHint |
Flag which hints the projector engine how to set the destination element: via the constructor (true) or on another way (false).
This flag can be ignored by the projector engine if values can better be set otherwise.
| |
ValueFilter |
Gets or sets the value filter which can be used to select between the DefaultValueProducer and the AlternativeValueProducer. If this filter isn't
set (null) or set to an IPredicate implementing object and at runtime the filter resolves to true for the entity passed into ProjectEntityProperty,
the DefaultValueProducer is used, otherwise the AlternativeValueProducer. If AlternativeValueProducer isn't set, an
ORMInterpretationException is thrown.
| |
ValueProducerFunc |
Gets or sets the delegate to use to produce a value for this projector out of the list of object values. Be sure to set
ValueProducerFuncParameterIndices if the delegate contained inside ValueProducerFunc requires any input values from the list of values to project
| |
ValueProducerFuncParameterIndices |
Gets or sets the parameter indices array to use with ValueProducer. If ValueProducerFunc is null, this array is ignored.
| |
ValueType |
Gets or sets the type of the value returned by the value producers. This can be different from the actual value produced as you can change
the type in an override of ValuePostProcess. If not set, it is set by ProjectEntityProperty to the type of the value producer selected
|