类型或命名空间名称'的ObservableCollection'找不到 [英] The type or namespace name 'ObservableCollection' could not be found
本文介绍了类型或命名空间名称'的ObservableCollection'找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我与实体框架在asp.net C#3.5框架工作
我已经生成使用POCO模板生成实体类。
但我得到以下错误:
I am working with Entity Framework in asp.net c# framework 3.5 I have generated entity classes using poco generator template. But I am getting following error:
类型或命名空间名称的ObservableCollection
找不到
(是否缺少using指令或程序集引用?)
The type or namespace name
ObservableCollection
could not be found (are you missing a using directive or an assembly reference?)
FYI System.Collections.ObjectModel
也被添加在课堂上。
FYI System.Collections.ObjectModel
is also added in class.
可能是什么问题?如何解决呢?
What could be wrong? How to resolve it?
推荐答案
使用System.Collections.ObjectModel;
using System.Collections.ObjectModel;
这篇关于类型或命名空间名称'的ObservableCollection'找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文