Hi guys,
Basically I wanted to have an if-else statement in my linq to sql statement.
var query = from d in database
if(x == y) {
where d.Attr = x
}
else {
where d.Attr = y
}
select d;
Any ideas?