Пример #1
0
 public ExtendedPropertyFilter(FilterOperator filterOperator, ExtendedPropertyDefinition extendedProperty, string value)
     : base(filterOperator)
 {
     ArgumentValidator.ThrowIfNull(extendedProperty, nameof(extendedProperty));
     this.ExtendedProperty = extendedProperty;
     this.Value            = value;
 }
Пример #2
0
        /// <summary>
        /// Add extended property to the list.
        /// </summary>
        /// <param name="extendedProperty"></param>
        public void Add(ExtendedPropertyDefinition extendedProperty)
        {
            ArgumentValidator.ThrowIfNull(extendedProperty, nameof(extendedProperty));
            switch (extendedProperty.PropertyValueType)
            {
            case PropertyValueType.SingleValueExtendedProperties:
                this.singleValueExtendedProperties.AddFilter(new SearchFilter.IsEqualTo(
                                                                 SingleValueLegacyExtendedPropertyObjectSchema.PropertyId,
                                                                 extendedProperty.Definition));
                break;

            case PropertyValueType.MultiValueExtendedProperties:
                this.multiValueExtendedProperties.AddFilter(new SearchFilter.IsEqualTo(
                                                                MultiValueLegacyExtendedPropertyObjectSchema.PropertyId,
                                                                extendedProperty.Definition));
                break;
            }
        }