Пример #1
0
        private string GetPropertyName(CamlParameterBindingFieldRef fieldRef)
        {
            string fieldName = fieldRef.Bind(bindings);
            string propertyName;

            if (managedPropertyDictionary.TryGetValue(fieldName, out propertyName))
            {
                return(propertyName);
            }
            return(fieldName);
        }
        private CamlExpression UpdateExpression(CamlExpression expression, CamlParameterBindingFieldRef field, bool equals)
        {
            ICollection <int> ids = GetDeletedTermIDs();

            if (ids.Count == 0)
            {
                return(expression);
            }
            CamlExpression constraint = Caml.LookupIdEqualsAny(field, ids);

            return(equals ? expression | constraint : expression& ~constraint);
        }