How would i write something like this in linq to entities
sb.Append(" WHERE question.question_isdeleted = 0");
if (catid != 0)
sb.AppendFormat(" AND (CatID IN ({0}))", catsSTR);
if(!string.IsNullOrEmpty(AuthorID))
sb.Append(" AND (question_ownerid = @id)");
i think I just need the syntax to write an if conditional in linq to entities