Skip to content

SqlBuilder OR clause #573

Closed
Closed
@rafakwolf

Description

@rafakwolf

The SqlBuilder seems to be adding "OR" clause the wrong way...

are adding "AND" instead of "OR".

builder.Where("MyField = @Param",paramObj);
builder.OrWhere("MyField2 = @Param2",paramObj2); 

results this statement:
WHERE MyField = @Nome AND MyField2 = @Param2

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions