Esempio n. 1
0
        //		public static NSPredicate GetNSPredicate (this PredicateData predicateData)
        //		{
        //
        //		}

        public static string ToSalesforceString(this NSPredicateOperatorType type)
        {
            switch (type)
            {
//			case NSPredicateOperatorType.BeginsWith:
//			case NSPredicateOperatorType.Between:
//			case NSPredicateOperatorType.Contains:
//			case NSPredicateOperatorType.CustomSelector:
//			case NSPredicateOperatorType.EndsWith:
//			case NSPredicateOperatorType.In:
//			case NSPredicateOperatorType.Like:
//			case NSPredicateOperatorType.Matches:
            case NSPredicateOperatorType.EqualTo:
                return("=");

            case NSPredicateOperatorType.GreaterThan:
                return(">");

            case NSPredicateOperatorType.GreaterThanOrEqualTo:
                return(">=");

            case NSPredicateOperatorType.LessThan:
                return("<");

            case NSPredicateOperatorType.LessThanOrEqualTo:
                return("<=");

            case NSPredicateOperatorType.NotEqualTo:
                return("!=");

            default:
                throw new NotSupportedException();
            }
        }
Esempio n. 2
0
 public static NSPredicateOperatorType[] ToArray(this NSPredicateOperatorType type)
 {
     return(new [] { type });
 }
Esempio n. 3
0
 public NSComparisonPredicate(NSExpression leftExpression, NSExpression rightExpression, NSComparisonPredicateModifier modifier, NSPredicateOperatorType type, NSComparisonPredicateOptions options)
 {
 }