Skip to content

No support to nulling parameters #3

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions