I have a query, which will give the result set . based on a condition I want to write the where clause. that means . I have a variable x, if the value of x is "ALL" then I don't want to add this condition at all.if the value is not "ALL" then I need to add a where clause (where st.address==x). how can I add this condition in below query .
var abc=(from st in Context.STopics join ap in Context.ATopic on st.id equals ap.id
where st.address==x
select new result()
{
name = st.name
add= ap.add}).ToList();