1.指定的 LINQ 表达式包含对与不同上下文关联的查询的引用。
谁能解决?
2. int转换枚举不成功,先把linq to sql 转换成list。即.tolist().select new 类名{}即可。