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

No support to nulling parameters #3

Open
GoogleCodeExporter opened this issue Apr 28, 2015 · 0 comments
Open

No support to nulling parameters #3

GoogleCodeExporter opened this issue Apr 28, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Take the following query..


var name = "test";
var sql = new SqlLam<User>();
sql.Where(x => x.UserName == name).Or(x => name == null);
or
var sql = new SqlLam<User>(x => x.UserName == name || name == null);


This causes a System.StackOverflowException, what it should return is
"SELECT * FROM User WHERE Username = @Param1 OR @Param1 IS NULL"

Original issue reported on code.google.com by lee...@leehull.com on 19 Feb 2014 at 9:55

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

No branches or pull requests

1 participant