Click or drag to resize

EntityPropertyProjector Class

General class which defines the projection result and destination of a property of an entity.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClassesEntityPropertyProjector

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
[SerializableAttribute]
public class EntityPropertyProjector : IEntityPropertyProjector, 
	IProjector

The EntityPropertyProjector type exposes the following members.

Constructors
  NameDescription
Public methodEntityPropertyProjector(IEntityFieldCore, String)
Initializes a new instance of the EntityPropertyProjector class.
Public methodEntityPropertyProjector(IEntityFieldCore, String, IPredicate, IEntityFieldCore)
Initializes a new instance of the EntityPropertyProjector class.
Public methodEntityPropertyProjector(IEntityFieldCore, String, IPredicate, IEntityFieldCore, Type)
Initializes a new instance of the EntityPropertyProjector class.
Public methodEntityPropertyProjector(IEntityFieldCore, String, IPredicate, IEntityFieldCore, Type, Boolean)
Initializes a new instance of the EntityPropertyProjector class.
Top
Properties
  NameDescription
Public propertyAlternativeValueProducer
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.
Public propertyDefaultValueProducer
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.
Public propertyProjectedResultName
Name for the projection result. Projection result consumers can use this name to further handle the projection result.
Public propertySetUsingCTorHint
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.
Public propertyValueFilter
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.
Public propertyValueProducerFunc
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
Public propertyValueProducerFuncParameterIndices
Gets or sets the parameter indices array to use with ValueProducer. If ValueProducerFunc is null, this array is ignored.
Public propertyValueType
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
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodProjectEntityProperty
Projects the entity through this entity property projector and results into a single value, based on what the DefaultValueProducer is and what filter is specified (if any)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodValuePostProcess
Postprocesses the value passed in, which is the value produced by the selected value producer in ProjectEntityProperty.
Top
See Also