If you for instance create a multi layered application and get the compilation error
The type ‘System.Data.Objects.DataClasses.EntityObject’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′.
when you compile the business layer just add a reference to System.Data.Entity.
本文解决在使用Entity Framework 4构建多层应用时遇到的编译错误问题,通过添加正确引用来解决类型未定义的问题。

被折叠的 条评论
为什么被折叠?



