public void StartsWithPredicate(SqlFragment parent, StartsWithPredicate startsWithPredicate) { startsWithPredicate.LeftOperand.Build(startsWithPredicate, this); this.Script.Append(TSqlKeyword.LIKE); Expression expression = startsWithPredicate.RightOperand + "%"; expression.Build(startsWithPredicate, this); }
public void EndsWithPredicate(SqlFragment parent, EndsWithPredicate endsWithPredicate) { endsWithPredicate.LeftOperand.Build(parent, this); this.Script.Append("LIKE"); Expression expression = "%" + endsWithPredicate.RightOperand; expression.Build(parent, this); }
public void ContainsPredicate(SqlFragment parent, ContainsPredicate containsPredicate) { // TODO do we keep contains here? containsPredicate.LeftOperand.Build(parent, this); this.Script.Append("LIKE"); Expression expression = "%" + containsPredicate.RightOperand + "%"; expression.Build(parent, this); }