var q = from e in **
                    where((Arr != null && Arr.Length > 0) ? !(Arr.Contains(e.class)) : true)
                    orderby e.ID descending
                    select e;
Arr 为传进来的int?[] 可空int类型数组
当传null进来会报source 为 null错~~
或者linq to sql 还有没有别的not in 写法?
谢谢!