Click or drag to resize

EntityFieldExpression Class

Specific expression class which represents an EntityField(2) object. It could be that the field is in a related entity (e.g. od.Order.Customer.Country), and relations are necessary to access the field. These relations are then part of this entityfield expression.
Inheritance Hierarchy

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses.ExpressionClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
public class EntityFieldExpression : CommonExpression, 
	IRelationPropagator

The EntityFieldExpression type exposes the following members.

Constructors
  NameDescription
Public methodEntityFieldExpression(IEntityFieldCore, SetAlias)
Initializes a new instance of the EntityFieldExpression class.
Public methodEntityFieldExpression(IEntityFieldCore, SetAlias, SetAlias)
Initializes a new instance of the EntityFieldExpression class.
Public methodEntityFieldExpression(IEntityFieldCore, Type, SetAlias)
Initializes a new instance of the EntityFieldExpression class.
Public methodEntityFieldExpression(IEntityFieldCore, Type, SetAlias, SetAlias)
Initializes a new instance of the EntityFieldExpression class.
Top
Properties
  NameDescription
Public propertyAliasOfContainingSet
Gets or sets the alias of the field containing set.
Public propertyAliasOfRealSource
The alias of the real source. Can be different than the AliasOfContainingSet, e.g. when the real source is inside a derived table.
Public propertyCanReduce
Indicates that the node can be reduced to a simpler node. If this returns true, Reduce() can be called to produce the reduced form.
(Inherited from Expression.)
Public propertyFieldAsString
Gets the field as string.
Public propertyFieldObject
Gets or sets the Field
Public propertyNodeType
Gets the node type of this Expression.
(Inherited from CommonExpression.)
Public propertyRelationsToUse
Gets the relations required to access this field. Can be null (which means: no relations needed)
Public propertyType
Gets the static type of the expression that this Expression represents.
(Inherited from CommonExpression.)
Top
Methods
  NameDescription
Protected methodAccept
Dispatches to the specific visit method for this node type. For example, MethodCallExpression calls the VisitMethodCall(MethodCallExpression).
(Inherited from Expression.)
Public methodAddRelations
Adds the relations passed in. Relations are added to this entityfield expression if the field is in a related entity and the relations contained inside this field object are required to access the field.
Public methodCorrectRenamedFieldIfRequired
Corrects the name of the field of this expression to a renamed variant if the field it is targeting has been renamed due to a field duplicate situation.
Public methodCreateCloneWithDifferentType
Creates a clone of this EntityFieldExpression with the same elements and a different Type
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 methodGetFieldObjectWithProperObjectAlias
Gets the field object with proper object alias. It will apply the set AliasOfContainingSet if the field object's ObjectAlias is empty
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHandle
Handles this instance using the specified handler.
(Overrides CommonExpressionHandle(ScopeHandlerBase).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReduce
Reduces this node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method can return another node which itself must be reduced.
(Inherited from Expression.)
Public methodReduceAndCheck
Reduces this node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method can return another node which itself must be reduced.
(Inherited from Expression.)
Public methodReduceExtensions
Reduces the expression to a known node type (that is not an Extension node) or just returns the expression if it is already a known type.
(Inherited from Expression.)
Public methodToString
Returns a textual representation of the Expression.
(Overrides ExpressionToString.)
Protected methodVisitChildren
Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.
(Inherited from Expression.)
Top
See Also