MappingTrackerFindObjectAlias Method (MemberInfo, String, 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.
Namespace:
SD.LLBLGen.Pro.LinqSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax public SetAlias FindObjectAlias(
MemberInfo info,
string expressionKey,
bool respectScopes = true
)
Public Function FindObjectAlias (
info As MemberInfo,
expressionKey As String,
Optional respectScopes As Boolean = true
) As SetAlias
Parameters
- info
- Type: System.ReflectionMemberInfo
The MemberInfo to look the alias for. - expressionKey
- Type: SystemString
The expression key of the member expression. - respectScopes (Optional)
- Type: SystemBoolean
If true (default) it will respect scope rules and will return the alias of a containing scope if an alias is found, otherwise it
will return the first matching alias, whether it's in scope or not
Return Value
Type:
SetAlias
the alias to find, or empty alias if not found
Remarks Walks all the scopes on the stack.
See Also