MappingTracker Class |
Namespace: SD.LLBLGen.Pro.LinqSupportClasses
The MappingTracker type exposes the following members.
Name | Description | |
---|---|---|
MappingTracker(Boolean) |
Initializes a new instance of the MappingTracker class.
| |
MappingTracker(Boolean, Boolean) |
Initializes a new instance of the MappingTracker class.
|
Name | Description | |
---|---|---|
CacheDuration |
Gets or sets the duration of the cache.
| |
CacheResultset |
Gets or sets a value indicating whether [cache resultset].
| |
CacheTag |
Gets or sets the tag the resultset should be cached under. By default this is the empty string (no tag)
| |
CreatedDerivedTables |
Gets the list of created derived tables.
| |
FromToAliasesForDefaultIfEmptysFound |
Gets the list of from-to alias pairs for DefaultIfEmpty expressions found which will be replaced with a set with a different alias
This list is used to correct elements which refer to the DefaultIfEmpty's alias.
| |
OverwriteIfPresent |
Gets or sets a value indicating whether [overwrite if present].
| |
QueryTag |
Gets or sets the optional tag for the SQL query/queries to relate SQL strings in an RDBMS with an origin. This is set in this tracker to be able to set
the tag of the outer query.
| |
WithTies |
Gets or sets the directive to use WITH TIES in a Take call if an order by is specified.
|
Name | Description | |
---|---|---|
AddAliasContainerToKnownList |
Adds the alias container to the list of known alias containers.
| |
AddAliasForExpressionKey |
Adds the alias for the expression key specified.
| |
AddAliasMemberInfo(MemberInfo, SetAlias) |
Adds the alias member info.
| |
AddAliasMemberInfo(MemberInfo, SetAlias, Boolean) |
Adds the alias member info.
| |
AddAliasObjectRelation |
Adds the alias-object relation for an aliased llblgen pro object (entity, derived table)
These combinations are necessary to find back an object based on a relation so new relations can be build with the same object.
| |
AddDefaultIfEmptySourceAlias |
Adds the default if empty source alias for the default if empty alias specified. This is required to properly find back the real source
if the element at hand is a defaultifempty alias.
| |
AddDerivedTable |
Adds the derived table.
| |
AddDerivedTableFromGroupByQueryForGroupByAlias |
Adds the derived table which is created from the queryexpression which was created from a group by with the groupByAlias passed in so we can
find it back if we need to add a field to the derived table.
| |
AddGroupJoinLeftSideAliasForGroupJoinAlias |
Adds the alias of the left side of the group join with the alias specified to this tracker.
| |
AddQueryExpressionInstanceForGroupByAlias |
Adds the QueryExpression instance in the _queryFromGroupByPerAlias store for the alias set on the queryexpression.
| |
AddQueryForGroupByAlias |
Adds the query for group by alias.
| |
AddQueryProjectionForAlias |
Adds the projection of a query for the specified alias to the mappings. This is useful when we've a SetReferenceExpression which refers to a
set with an alias and we need to obtain its projection (which is all we need from the referenced set anyway, the rest is already in the
SetReferenceExpression.
| |
AddRelationForParameter |
Adds the relation which is (indirectly) determined from a navigaton from the parameter specified.
| |
AddRenamedFieldInProjectionWithNewName |
Adds the specified field (which has to have its original name and alias) with its new name, which was assigned as an alias to the field due to a name clash / duplicate
situation in a projection.
| |
BeginPreprocessorScope |
Begins the preprocessor scope. Preprocessor scopes are for assigning multiple aliases to the same member or other object, and obtaining
an already assigned alias for a member or other object if it's in scope.
| |
CheckIfIsKnownPlainSqlExpression |
Checks whether the specified type is a known type used with a plain sql expression. It has been handled properly and assigned an alias so
it is a known set.
| |
CheckIfIsKnownTypedViewType |
Checks whether the specified type is a known typedview type, i.e. a type which has been
handled properly inside a query as it then has been assigned an alias.
| |
CreateNewAlias |
Creates a new SetAlias.
| |
EndPreprocessorScope |
Ends the preprocessor scope.
| |
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.) | |
FindAliasedObject |
Finds the aliased LLBLGen Pro object with the alias string specified. The object is part of a join, and the alias is originating from a field which
refers to elements in a source (e.g. join)
| |
FindDefaultIfEmptySourceAliasForDefaultIfEmptyAlias(String) |
Finds the default if empty source alias for default if empty alias.
| |
FindDefaultIfEmptySourceAliasForDefaultIfEmptyAlias(SetAlias) |
Finds the default if empty source alias for default if empty alias.
| |
FindDerivedTableFromGroupByQuery |
Finds the derived table object which was created from the queryexpression which was created from the groupby with the alias specified.
Used to add aggregate fields to the derived table, which are added later on to the groupby.
| |
FindGroupByExpression |
Finds the group by expression represented by the alias passed in.
| |
FindGroupJoinExpression(Type) |
Finds the group join expression associated with the anonymous type specified
| |
FindGroupJoinExpression(SetAlias) |
Finds the group join expression based on the alias of the right side of the group join.
| |
FindGroupJoinLeftSideAlias |
Returns the alias of the left side of the group join with the alias specified or null if not found.
| |
FindObjectAlias(MemberInfo) |
Finds the object alias for the member info specified. This is the alias assigned to the set which is represented by the
memberinfo passed in which is a memberinfo on an anonymous type created in a Join expression as the result of the join.
| |
FindObjectAlias(ParameterExpression, Boolean) |
Finds the object alias for the parameter specified. This is the alias assigned to the set which is represented by the
type specified by the parameter passed in. If the parameter was a parameter of a selector of a side in a join expression, this parameter
has the alias for the side it represented.
| |
FindObjectAlias(MemberInfo, String, Boolean, Boolean) |
Finds the object alias for the member info specified. This is the alias assigned to the set which is represented by the
memberinfo passed in which is a memberinfo on an anonymous type created in a Join expression as the result of the join.
| |
FindProjectionExpression |
Finds the projection expression of the set with the alias specified.
| |
FindQueryExpressionFromGroupBy |
Finds the QueryExpression object which was the result of the conversion of the GroupBy expression referenced by the alias specified.
This routine is used to obtain a hold of a groupby to modify its query contents when the query is referenced by in an aggregate.
| |
FindRealObjectAlias |
Returns the real alias for the member info specified, from the top scope to the bottom, and ignores
scope rules. It will return the first matching real alias, without checking whether the alias is in scope.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetNewFieldNameForRenamedField |
Determines if the field specified with its original object alias was renamed (and thus tracked by this mapping tracker). If so, it will return the new name
of the specified field. If not, it will return the field alias of the field object specified.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsAliasToDerivedTable |
Determines whether the passed in alias is an alias of a created derived table.
| |
IsAliasToGroupBy |
Returns true if the alias specified is an alias for a groupby expression.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ObtainRegisteredRelationsForParameter |
Obtains the registered relations for parameter. These are relations which are successfully registered through AddRelationForParameter, thus relations which
are results of navigations away form a parameter.
| |
PopAliasContainer |
Pops the alias container from the stack of active alias containers.
| |
PopLambdaParameterScope |
Pops the lambda parameter scope from the stack.
| |
PushAliasContainer |
Pushes the alias container passed in to the internal stack.
| |
PushLambdaParameterScope |
Pushes the parameters specified as a new lambda parameter scope.
| |
RemoveRelationshipForParameters |
Removes the relationship specified for all parameters it's been tracked for. This is required if the relationship has been used for a correlation predicate.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UpdateGroupByExpressionInStores |
Updates the group by expression in the dictionaries in this class. As the handlers create new instances of groupby expressions
each time a referenced element changes, these references have to be updated.
| |
UpdateGroupJoinInstanceInStores |
Updates the group join instance in the dictionary stores in this class. As the handlers create new instances of groupjoin expressions
each time a referenced element changes, these references have to be updated.
|