private void HasNumber() { Expression <Func <Student, bool> > exp = it => SqlFunc.HasNumber(it.Id); SqlServerExpressionContext expContext = new SqlServerExpressionContext(); expContext.Resolve(exp, ResolveExpressType.WhereSingle); var value = expContext.Result.GetString(); var pars = expContext.Parameters; base.Check(value, pars, "( [Id]>0 AND [Id] IS NOT NULL )", new List <SugarParameter>() { }, "HasNumber error"); }