示例#1
0
        /// <summary>
        /// Gets the groupAggregateVarRefInfo representing the definition of the given property of the given
        /// var over a group aggregate var if any.
        /// </summary>
        /// <param name="var"></param>
        /// <param name="property"></param>
        /// <param name="groupAggregateVarRefInfo"></param>
        /// <returns></returns>
        internal bool TryGetReferencedGroupAggregateVarInfo(Var var, EdmMember property, out GroupAggregateVarRefInfo groupAggregateVarRefInfo)
        {
            if (property == null)
            {
                return(TryGetReferencedGroupAggregateVarInfo(var, out groupAggregateVarRefInfo));
            }

            Dictionary <EdmMember, GroupAggregateVarRefInfo> varPropertyDictionary;

            if (_groupAggregateVarRelatedVarPropertyToInfo == null || !_groupAggregateVarRelatedVarPropertyToInfo.TryGetValue(var, out varPropertyDictionary))
            {
                groupAggregateVarRefInfo = null;
                return(false);
            }
            return(varPropertyDictionary.TryGetValue(property, out groupAggregateVarRefInfo));
        }
        /// <summary>
        /// Gets the groupAggregateVarRefInfo representing the definition of the given property of the given
        /// var over a group aggregate var if any.        
        /// </summary>
        /// <param name="var"></param>
        /// <param name="property"></param>
        /// <param name="groupAggregateVarRefInfo"></param>
        /// <returns></returns>
        internal bool TryGetReferencedGroupAggregateVarInfo(Var var, EdmMember property, out GroupAggregateVarRefInfo groupAggregateVarRefInfo)
        {
            if (property == null)
            {
                return TryGetReferencedGroupAggregateVarInfo(var, out groupAggregateVarRefInfo);
            }

            Dictionary<EdmMember, GroupAggregateVarRefInfo> varPropertyDictionary;
            if (_groupAggregateVarRelatedVarPropertyToInfo == null || !_groupAggregateVarRelatedVarPropertyToInfo.TryGetValue(var, out varPropertyDictionary))
            {
                groupAggregateVarRefInfo = null;
                return false;
            }
            return varPropertyDictionary.TryGetValue(property, out groupAggregateVarRefInfo);
        }
示例#3
0
 /// <summary>
 /// Gets the groupAggregateVarRefInfo representing the definition of the given var over
 /// a group aggregate var if any.
 /// </summary>
 /// <param name="var"></param>
 /// <param name="groupAggregateVarRefInfo"></param>
 /// <returns></returns>
 internal bool TryGetReferencedGroupAggregateVarInfo(Var var, out GroupAggregateVarRefInfo groupAggregateVarRefInfo)
 {
     return(this._groupAggregateVarRelatedVarToInfo.TryGetValue(var, out groupAggregateVarRefInfo));
 }
 /// <summary>
 /// Gets the groupAggregateVarRefInfo representing the definition of the given var over 
 /// a group aggregate var if any.
 /// </summary>
 /// <param name="var"></param>
 /// <param name="groupAggregateVarRefInfo"></param>
 /// <returns></returns>
 internal bool TryGetReferencedGroupAggregateVarInfo(Var var, out GroupAggregateVarRefInfo groupAggregateVarRefInfo)
 {
     return this._groupAggregateVarRelatedVarToInfo.TryGetValue(var, out groupAggregateVarRefInfo);
 }