EntityExpression Class |
Namespace: SD.LLBLGen.Pro.LinqSupportClasses.ExpressionClasses
The EntityExpression type exposes the following members.
Name | Description | |
---|---|---|
EntityExpression(Type) |
Initializes a new instance of the EntityExpression class.
| |
EntityExpression(Type, Type) |
Initializes a new instance of the EntityExpression class.
|
Name | Description | |
---|---|---|
Alias |
Gets or sets the Alias assigned to this set.
(Inherited from SetExpression.) | |
CanReduce | 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.) | |
ContainedAliases |
Gets or sets the AliasContainer which contains the aliases inside this direct set which are reachable only INSIDE this set.
If null, it has no aliases directly inside this set, it can be the source might have contained aliases.
(Inherited from SetExpression.) | |
CorrelationRelation |
Gets the relation which connects the set defined by this entity type and a containing query. This is normally the first relation in
the relationsToUse list, as that relation ties the relations in the RelationsToUse to the outer query.
A correlated subquery is a normal subquery with a predicate which ties subquery set and outer query together. This predicate
is createable from the entity relation by simply creating FieldCompareExpression predicates from the field(s) of fk and pk. Aliases for the
fields have to be set to the aliases of pk/fk side in the relation.
Can be null.
| |
CreatedFromParameter |
Gets or sets the parameter this instance was created from, if any. Can be a parameter this entity is created from indirectly, e.g.
od.Order.Customer, both Order and Customer navigators result in an EntityExpression which all are created from the parameter od.
This is required to be able to move relations based on navigators to the right scope (i.e. the one where the parameter is defined).
| |
EntityType |
Gets or sets the type of the entity as represented by this EntityExpression.
| |
IsExtractionLocked |
Gets or sets a value indicating whether this instance is extraction locked, which means a where/orderby extractor won't touch it.
(Inherited from SetExpression.) | |
NodeType |
Gets the node type of this Expression.
(Inherited from CommonExpression.) | |
RelationsToUse |
Gets the relations required to access this entity. Can be null (which means: no relations needed)
This collection is filled if the entity represented by this expression is a related entity so a relation is required to reach that entity.
The relations in this collection are always IEntityRelation, as dynamic relations aren't the result of an access of a related entity/collection,
which are the source of the relations in this set.
| |
RequiresProjection |
Flag which is set if this set requires a projection to be usable. This flag is later on used to determine if a projection has to be injected
into the processing result of this set if there's none defined (true), or not (false). Default is false;
(Inherited from SetExpression.) | |
Source |
Gets or sets the source expression of the select
(Inherited from SetExpression.) | |
Type |
Gets the static type of the expression that this Expression represents.
(Inherited from CommonExpression.) |
Name | Description | |
---|---|---|
Accept | Dispatches to the specific visit method for this node type. For example, MethodCallExpression calls the VisitMethodCall(MethodCallExpression). (Inherited from Expression.) | |
AddHint |
Adds the hint specification to the list of specifications on this entity expression
(Inherited from HintableElementExpression.) | |
AddHints |
Adds the hints.
(Inherited from HintableElementExpression.) | |
AddRelation |
Adds the relation. The relation passed in is necessary to reach this entity from the root entity of the query.
| |
AddRelations |
Adds the relations passed in.
| |
AddTemporalTablePredicate |
Adds the temporal table predicate specified
(Inherited from HintableElementExpression.) | |
AssignNewAliasIfRequired |
Assigns a new alias to this set, if necessary
(Inherited from SetExpression.) | |
CreateCloneWithDifferentEntityType |
Creates a clone of the passed in entityexpression with a different entity type
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetFromClauseDirectiveClones |
Gets from clause directives as clones.
(Inherited from HintableElementExpression.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetRepresentingObjectForDynamicRelationSide |
Gets the representing object for this entity for dynamic relation side. If this entity wraps a tvf call, this tvf call is returned (and
which gets this entity's alias) otherwise this entity's type is returned.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Handle |
Handles this instance using the specified handler.
(Overrides SetExpressionHandle(ScopeHandlerBase).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NewAliasAssigned |
A new alias was set, using AssignNewAliasIfRequired. Use this method to map a wrapped expression to the alias set in the tracker passed in.
(Inherited from SetExpression.) | |
Reduce | 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.) | |
ReduceAndCheck | 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.) | |
ReduceExtensions | 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.) | |
SetRequiresProjectionFlag |
Sets the RequiresProjection flag if this expression isn't an EntityExpression
(Inherited from SetExpression.) | |
ToString |
Returns a textual representation of the Expression.
(Overrides ExpressionToString.) | |
VisitChildren | 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.) |