var retuls = dataContext.ExecuteQuery<Int32?>("Select id from table where value={0}", value);if(result!= Null){ //Call items here}