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); } }
public LikeNode(LikeMethod method, MemberNode memberNode, string value) { Method = method; MemberNode = memberNode; Value = value; }