Beispiel #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="field">The search field</param>
 /// <param name="value">The query value</param>
 /// <param name="logicOperator">The logical operator AND, Or, NOT</param>
 /// <param name="compare">Comparison between data and value to satisfy the criteria</param>
 internal QueryField(string field, object value, EnOperator logicOperator, EnComparator compare)
 {
     Field    = field;
     Value    = value;
     Operator = logicOperator;
     Compare  = compare;
 }
Beispiel #2
0
 public FindRequest <T> Not(string fieldName, object value, EnComparator compare = EnComparator.EqualTo)
 {
     Fields.Add(new QueryField(fieldName, value, EnOperator.Not, compare));
     return(this);
 }
Beispiel #3
0
        /// <summary>
        /// Insert a search OR condition into the find request
        /// </summary>
        /// <returns>FindRequest with new search operator</returns>
        /// <param name="field">The search field</param>
        /// <param name="value">The query value</param>
        /// <param name="compare">Comparison between data and value to satisfy the criteria</param>
        public FindRequest <T> Not(Expression <Func <T, object> > field, object value, EnComparator compare = EnComparator.EqualTo)
        {
            var fieldName = Metadata.GetMemberInfo(field).Member.Name;

            Fields.Add(new QueryField(fieldName, value, EnOperator.Not, compare));
            return(this);
        }