Linq like Sql server Where Case

  • Thread starter Thread starter want 2 Learn
  • Start date Start date
W

want 2 Learn

Guest
I have a Linq, which I want to do something like in Sql Server, for example:

Declare @id int
select * from tbl1
where col1=Case when @id IS NULL THEN col1
else @id END


couldn't find a way, is it possible?

Continue reading...
 
Back
Top