Example #1
0
 /// <summary>
 /// Creates a <see cref="DatePropertyValueSearchCondition"/>, searching for the value supplied.
 /// </summary>
 /// <param name="propertyDefId">The Id of the property def to search by.</param>
 /// <param name="value">The value to search by.</param>
 /// <param name="searchConditionOperator">The operator to use (defaults to Equals if not provided).</param>
 /// <param name="invertOperator">Whether to invert the search operator (defaults to false if not provided).</param>
 public DatePropertyValueSearchCondition(
     int propertyDefId,
     DateTime value,
     SearchConditionOperators searchConditionOperator = SearchConditionOperators.Equals,
     bool invertOperator = false)
     : base(propertyDefId, value, searchConditionOperator, invertOperator)
 {
 }
Example #2
0
 /// <summary>
 /// Creates a <see cref="NumericPropertyValueSearchCondition"/>, searching for the value supplied.
 /// </summary>
 /// <param name="propertyDefId">The Id of the property def to search by.</param>
 /// <param name="value">The value to search by.</param>
 /// <param name="searchConditionOperator">The operator to use (defaults to Equals if not provided).</param>
 /// <param name="invertOperator">Whether to invert the search operator (defaults to false if not provided).</param>
 public NumericPropertyValueSearchCondition(
     int propertyDefId,
     float value,
     SearchConditionOperators searchConditionOperator = SearchConditionOperators.Equals,
     bool invertOperator = false)
     : base(propertyDefId, value.ToString(), searchConditionOperator, invertOperator)
 {
 }
 /// <summary>
 /// Creates a <see cref="LookupPropertyValueSearchCondition"/>, searching for the lookup value supplied.
 /// </summary>
 /// <param name="propertyDefId">The Id of the property def to search by.</param>
 /// <param name="lookupIds">The Ids of the lookup value to search by.</param>
 /// <param name="searchConditionOperator">The operator to use (defaults to Equals if not provided).</param>
 /// <param name="invertOperator">Whether to invert the search operator (defaults to false if not provided).</param>
 /// <remarks>If multiple lookup Ids are present, then objects matching any one of the Ids will be returned (e.g. "class is one of 1, 2, 3, or 4").</remarks>
 public LookupPropertyValueSearchCondition(
     int propertyDefId,
     SearchConditionOperators searchConditionOperator = SearchConditionOperators.Equals,
     bool invertOperator = false,
     params int[] lookupIds)
     : base(propertyDefId, string.Join(",", lookupIds), searchConditionOperator, invertOperator)
 {
 }
 /// <summary>
 /// Creates a <see cref="LookupPropertyValueSearchCondition"/>, searching for the lookup value supplied.
 /// Note that this constructor allows you to provide an external Id (or display Id).  This is used ONLY when objects are
 /// loaded from an external system: http://www.m-files.com/user-guide/latest/eng/#Connection_to_external_database.html.
 /// </summary>
 /// <param name="propertyDefId">The Id of the property def to search by.</param>
 /// <param name="externalLookupIds">The Ids of the lookup value IN THE EXTERNAL SYSTEM.</param>
 /// <param name="searchConditionOperator">The operator to use (defaults to Equals if not provided).</param>
 /// <param name="invertOperator">Whether to invert the search operator (defaults to false if not provided).</param>
 /// <remarks>If multiple lookup Ids are present, then objects matching any one of the Ids will be returned (e.g. "class is one of 1, 2, 3, or 4").</remarks>
 public LookupPropertyValueSearchCondition(
     int propertyDefId,
     SearchConditionOperators searchConditionOperator = SearchConditionOperators.Equals,
     bool invertOperator = false,
     params string[] externalLookupIds)
     : base(propertyDefId, "e" + string.Join(",e", externalLookupIds), searchConditionOperator, invertOperator)
 {
 }
Example #5
0
 /// <summary>
 /// Creates a <see cref="TextPropertyValueSearchCondition"/>, searching for the value supplied.
 /// </summary>
 /// <param name="propertyDefId">The Id of the property def to search by.</param>
 /// <param name="value">The value to search by.</param>
 /// <param name="searchConditionOperator">The operator to use (defaults to Equals if not provided).</param>
 /// <param name="invertOperator">Whether to invert the search operator (defaults to false if not provided).</param>
 public TextPropertyValueSearchCondition(
     int propertyDefId,
     string value,
     SearchConditionOperators searchConditionOperator = SearchConditionOperators.Equals,
     bool invertOperator = false)
     : base(propertyDefId, value, searchConditionOperator, invertOperator)
 {
 }
 protected SearchConditionBase(
     string expression,
     SearchConditionOperators op,
     bool invertOperator = false)
 {
     this.Expression     = expression;
     this.InvertOperator = invertOperator;
     this.Operator       = op;
 }
Example #7
0
 /// <summary>
 /// Creates a <see cref="PropertyValueSearchConditionBase{T}"/>, searching for the value supplied.
 /// </summary>
 /// <param name="propertyDefId">The Id of the property def to search by.</param>
 /// <param name="value">The value to search by.</param>
 /// <param name="searchConditionOperator">The operator to use (defaults to Equals if not provided).</param>
 /// <param name="invertOperator">Whether to invert the search operator (defaults to false if not provided).</param>
 protected PropertyValueSearchConditionBase(
     int propertyDefId,
     T value,
     SearchConditionOperators searchConditionOperator = SearchConditionOperators.Equals,
     bool invertOperator = false)
     : base("p", searchConditionOperator, value, invertOperator)
 {
     this.PropertyDefId = propertyDefId;
 }
Example #8
0
 /// <summary>
 /// Creates a <see cref="ObjectTypeSearchCondition"/>, searching for the value supplied.
 /// </summary>
 /// <param name="objectTypeId">The Id of the object type to retrieve.</param>
 /// <param name="searchConditionOperator">The operator to use (defaults to Equals if not provided).</param>
 /// <param name="invertOperator">Whether to invert the search operator (defaults to false if not provided).</param>
 public ObjectTypeSearchCondition(int objectTypeId, SearchConditionOperators searchConditionOperator = SearchConditionOperators.Equals, bool invertOperator = false)
     : base("o", searchConditionOperator, objectTypeId, invertOperator)
 {
 }