public WhereClip EndsWith(string suffix) { Check.Require(!string.IsNullOrEmpty(suffix), "suffix could not be null or empty!"); return(ExpressionFactory.AppendWhereAnd(new WhereClip(), this, QueryOperator.Like, ExpressionFactory.CreateParameterExpression(this.dbType, '%' + suffix.Replace("%", "[%]").Replace("_", "[_]")))); }
public WhereClip Like(string right) { Check.Require(right != null, "right could not be null."); return(ExpressionFactory.AppendWhereAnd(new WhereClip(), this, Rock.Orm.Common.QueryOperator.Like, ExpressionFactory.CreateParameterExpression(this.DbType, right))); }