Exemplo n.º 1
0
        public override Expression <Func <Doctor, bool> > ToExpression()
        {
            var relatedId   = searchHintBase.RelatedIdPredicate();
            var searchQuery = searchHintBase.SearchQuery();

            return(x => searchQuery(x.Name) && relatedId(x.Category.Id));
        }
Exemplo n.º 2
0
        public override Expression <Func <RelativeofBeatyandhealthy, bool> > ToExpression()
        {
            var relatedId = searchHintBase.RelatedIdPredicate();

            return(x => searchHintBase.ApplySearch(x.Address, x.CreateDate) && relatedId(x.BeatyandHealthy.Id));
        }