예제 #1
0
        internal static string LikeCondition(string value, LikeMethod method)
        {
            switch (method)
            {
            case LikeMethod.StartsWith:
                return(value + "%");

            case LikeMethod.EndsWith:
                return("%" + value);

            case LikeMethod.Contains:
                return("%" + value + "%");

            default:
                return(string.Empty);
            }
        }
예제 #2
0
 public LikeNode(LikeMethod method, MemberNode memberNode, string value)
 {
     Method     = method;
     MemberNode = memberNode;
     Value      = value;
 }