Beispiel #1
0
        protected ExpressionStarter <ResCurrentType> PredicateResourceIdAndLastUpdatedDate <
            ResCurrentType,
            ResIndexStringType,
            ResIndexTokenType,
            ResIndexUriType,
            ResIndexReferenceType,
            ResIndexQuantityType,
            ResIndexDateTimeType>(List <ISearchParameterBase> SearchParametersList)
            where ResCurrentType : ResourceCurrentBase <ResCurrentType, ResIndexStringType, ResIndexTokenType, ResIndexUriType, ResIndexReferenceType, ResIndexQuantityType, ResIndexDateTimeType>
            where ResIndexStringType : ResourceIndexString <ResCurrentType, ResIndexStringType, ResIndexTokenType, ResIndexUriType, ResIndexReferenceType, ResIndexQuantityType, ResIndexDateTimeType>
            where ResIndexTokenType : ResourceIndexToken <ResCurrentType, ResIndexStringType, ResIndexTokenType, ResIndexUriType, ResIndexReferenceType, ResIndexQuantityType, ResIndexDateTimeType>
            where ResIndexUriType : ResourceIndexUri <ResCurrentType, ResIndexStringType, ResIndexTokenType, ResIndexUriType, ResIndexReferenceType, ResIndexQuantityType, ResIndexDateTimeType>, new()
            where ResIndexReferenceType : ResourceIndexReference <ResCurrentType, ResIndexStringType, ResIndexTokenType, ResIndexUriType, ResIndexReferenceType, ResIndexQuantityType, ResIndexDateTimeType>
            where ResIndexQuantityType : ResourceIndexQuantity <ResCurrentType, ResIndexStringType, ResIndexTokenType, ResIndexUriType, ResIndexReferenceType, ResIndexQuantityType, ResIndexDateTimeType>
            where ResIndexDateTimeType : ResourceIndexDateTime <ResCurrentType, ResIndexStringType, ResIndexTokenType, ResIndexUriType, ResIndexReferenceType, ResIndexQuantityType, ResIndexDateTimeType>
        {
            var Predicate = LinqKit.PredicateBuilder.New <ResCurrentType>(true);
            var Search    = new ResourceSearch <
                ResCurrentType,
                ResIndexStringType,
                ResIndexTokenType,
                ResIndexUriType,
                ResIndexReferenceType,
                ResIndexQuantityType,
                ResIndexDateTimeType>();

            IdSearchParameterPredicateProcessing(SearchParametersList, Search, Predicate);
            LastUpdatedDatePredicateBuilder <
                ResCurrentType,
                ResIndexStringType,
                ResIndexTokenType,
                ResIndexUriType,
                ResIndexReferenceType,
                ResIndexQuantityType,
                ResIndexDateTimeType> .Build(SearchParametersList, Search, Predicate);

            return(Predicate);
        }
Beispiel #2
0
        public ExpressionStarter <ResCurrentType> PredicateResourceIdAndLastUpdatedDate(List <ISearchParameterBase> SearchParametersList)
        {
            var Predicate = LinqKit.PredicateBuilder.New <ResCurrentType>(true);
            var Search    = new ResourceSearchExpressionTrees <
                ResCurrentType,
                ResIndexStringType,
                ResIndexTokenType,
                ResIndexUriType,
                ResIndexReferenceType,
                ResIndexQuantityType,
                ResIndexDateTimeType>();

            IdSearchParameterPredicateProcessing(SearchParametersList, Search, Predicate);
            LastUpdatedDatePredicateBuilder <
                ResCurrentType,
                ResIndexStringType,
                ResIndexTokenType,
                ResIndexUriType,
                ResIndexReferenceType,
                ResIndexQuantityType,
                ResIndexDateTimeType> .Build(SearchParametersList, Search, Predicate);

            return(Predicate);
        }