/// <summary>
        /// 検索条件を作成します。
        /// </summary>
        /// <param name="attr"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public ConditionExpression CreateCondition(string attr, CmbOperator operatorValue, string value)
        {
            if (String.IsNullOrEmpty(attr) || string.IsNullOrEmpty(value))
            {
                return null;
            }

            ConditionExpression cond = new ConditionExpression();
            cond.AttributeName = attr;
            cond.Operator = operatorValue.GetOpeator();
            cond.Values.Add(value);

            return cond;
        }
        /// <summary>
        /// 検索条件を作成します。
        /// </summary>
        /// <param name="attr"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public ConditionExpression CreateCondition(string attr, CmbOperator operatorValue, string value)
        {
            if (String.IsNullOrEmpty(attr) || string.IsNullOrEmpty(value))
            {
                return(null);
            }

            ConditionExpression cond = new ConditionExpression();

            cond.AttributeName = attr;
            cond.Operator      = operatorValue.GetOpeator();
            cond.Values.Add(value);

            return(cond);
        }
        /// <summary>
        /// CmbOperatorの値に応じて、ConditionOperatorを生成。
        /// </summary>
        /// <param name="ope"></param>
        /// <returns></returns>
        public static ConditionOperator GetOpeator(this CmbOperator ope)
        {
            ConditionOperator conditionOperator = ConditionOperator.Equal;

            switch (ope)
            {
            case CmbOperator.Match:
                conditionOperator = ConditionOperator.Like;
                break;

            case CmbOperator.ForwardMath:
                conditionOperator = ConditionOperator.BeginsWith;
                break;

            case CmbOperator.BackwardMath:
                conditionOperator = ConditionOperator.EndsWith;
                break;

            case CmbOperator.GraterThan:
                conditionOperator = ConditionOperator.GreaterThan;
                break;

            case CmbOperator.GraterEqual:
                conditionOperator = ConditionOperator.GreaterEqual;
                break;

            case CmbOperator.LessThan:
                conditionOperator = ConditionOperator.LessThan;
                break;

            case CmbOperator.LessEqual:
                conditionOperator = ConditionOperator.LessEqual;
                break;
            }

            return(conditionOperator);
        }