Ejemplo n.º 1
0
        private static ExpressionStarter <ResCurrentType> CollectionEqualToPredicate(ResourceSearchExpressionTrees <ResCurrentType, ResIndexStringType, ResIndexTokenType, ResIndexUriType, ResIndexReferenceType, ResIndexQuantityType, ResIndexDateTimeType> Search, ExpressionStarter <ResCurrentType> NewPredicate, SearchParameterQuantity SearchTypeNumber, SearchParameterQuantityValue SearchValue)
        {
            var Expression = Search.QuantityCollectionAnyEqualTo(
                SearchTypeNumber.Id,
                Common.Tools.DecimalSupport.CalculateLowNumber(SearchValue.Value, SearchValue.Scale),
                SearchValue.Value,
                Common.Tools.DecimalSupport.CalculateHighNumber(SearchValue.Value, SearchValue.Scale),
                SearchValue.System,
                SearchValue.Code);

            NewPredicate = NewPredicate.Or(Expression);
            return(NewPredicate);
        }