Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
589 views
in Technique[技术] by (71.8m points)

c# - The type or namespace name 'ObservableCollection' could not be found

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:

The type or namespace name ObservableCollection could not be found (are you missing a using directive or an assembly reference?)

FYI System.Collections.ObjectModel is also added in class.

What could be wrong? How to resolve it?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Add WindowsBase to your reference.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...