LINQ entityset 不包含GetEnumerator的定义,在MVC中使用entity framework(EF)出现“必须添加对程序集“System.Data.Entity”解决方法
MVC中生成web.config默认只添加了linq的程序集引用,如果使用entity framework(EF)做为MVC的ORM,则需要在webconfig中添加程序集引用:
如:
<assemblies> ......
<add assembly="System.Xml.Linq, Version