Ejemplo n.º 1
0
        /// <summary>
        /// 엔티티의 Title 속성값이 지정된 값과 매칭(Like 검색) 되는 엔티티를 조회하는 Criteria를 빌드한다.
        /// </summary>
        /// <param name="criteria"></param>
        /// <param name="titleToMatch"></param>
        /// <param name="matchMode"></param>
        /// <returns></returns>
        public static DetachedCriteria AddTitleLike(this DetachedCriteria criteria, string titleToMatch, MatchMode matchMode)
        {
            if (IsDebugEnabled)
            {
                log.Debug("Title 속성을 매칭 검색하도록 Criteria를 빌드합니다. titleToMatch=[{0}], matchMode=[{1}]", titleToMatch, matchMode);
            }

            return(criteria.AddLike(TitlePropertyName, titleToMatch, matchMode));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 엔티티의 Code 속성값이 지정된 Code와 매칭(LIKE 검색) 되는 엔티티를 조회하는 DetachedCriteria를 빌드한다.
        /// </summary>
        public static DetachedCriteria AddCodeLike(this DetachedCriteria criteria, string codeToMatch, MatchMode matchMode)
        {
            if (IsDebugEnabled)
            {
                log.Debug("Code 속성을 매칭 검색하도록 Criteria를 빌드합니다. codeToMatch=[{0}], matchMode=[{1}]", codeToMatch, matchMode);
            }

            return(criteria.AddLike(CodePropertyName, codeToMatch, matchMode));
        }