EntityPropertyProjector Constructor (IEntityFieldCore, String, IPredicate, IEntityFieldCore) |
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
)
Public Sub New (
defaultValueProvider As IEntityFieldCore,
projectedResultName As String,
valueFilter As IPredicate,
alternativeValueProducer As IEntityFieldCore
)
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
See Also