Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lambda表达式解析的代码问题 #17

Open
danamy opened this issue Dec 14, 2020 · 0 comments
Open

lambda表达式解析的代码问题 #17

danamy opened this issue Dec 14, 2020 · 0 comments

Comments

@danamy
Copy link

danamy commented Dec 14, 2020

工程:Kogel.Dapper.Extension.Mssql
文件:BaseExpressionVisitor.cs
代码行数:517
protected override Expression VisitConstant(ConstantExpression node)
if (FieldName != null)
这个判断有问题。对于u=>true这样的lambda表达式解析错误。

对于FieldName的判断要改成
if(!string.IsNullOrEmpty(FieldName))
才能正常。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant