コード例 #1
0
        public IPersonSearchService SearchIdentificationExp(string nameOfStrategy, PersonIdentification personIdentification, bool isAndClause = true)
        {
            IPersonExpSearchStrategy <PersonIdentification> personExpSearchStrategy = _personIdentificationExpSearchStrategyFactory[nameOfStrategy];

            _personExpression = personExpSearchStrategy.Run(_personExpression, personIdentification, isAndClause);

            return(this);
        }
コード例 #2
0
        public IPersonSearchService SearchNameExp(string nameOfStrategy, PersonName personName, bool isAndClause = true)
        {
            IPersonExpSearchStrategy <PersonName> personExpSearchStrategy = _personNameExpSearchStrategyFactory[nameOfStrategy];

            _personExpression = personExpSearchStrategy.Run(_personExpression, personName, isAndClause);

            return(this);
        }