Click or drag to resize
EntityPropertyProjector Constructor (IEntityFieldCore, String, IPredicate, IEntityFieldCore, Type)
Initializes a new instance of the EntityPropertyProjector class.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntax
public EntityPropertyProjector(
	IEntityFieldCore defaultValueProvider,
	string projectedResultName,
	IPredicate valueFilter,
	IEntityFieldCore alternativeValueProducer,
	Type valueType
)

Parameters

defaultValueProvider
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFieldCore
The default value provider object.This object produces the value returned by ProjectEntityProperty if ValueFilter isn't set or resolves to true for the entity passed into ProjectEntityProperty. Can't be null
projectedResultName
Type: SystemString
Name for the projection result. Projection result consumers can use this name to further handle the projection result. Can't be null / empty string
valueFilter
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
The value filter which can be used to select between the DefaultValueProducer and the AlternativeValueProducer. If set to null, alternativeValueProducer is ignored.
alternativeValueProducer
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFieldCore
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. Can't be null if valuefilter is specified
valueType
Type: SystemType
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
See Also