Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 284
Riz Avatar asked Jul 13 '11 20:07

Riz


1 Answers

Add WindowsBase to your reference.

like image 130
Stanley Avatar answered Sep 19 '22 01:09

Stanley