剛試圖將我的應用程序從Windows Phone 8.0轉換爲Windows Phone 8.1 Universal/store應用程序。已將INotifyPropertyChanging從wp8.1中刪除通用
我正在使用Devart的LinqConnect來訪問我的SQLite數據庫,當我將模型添加到項目並做了一個編譯,我收到以下錯誤。
Error 1 The type or namespace name 'INotifyPropertyChanging' could not be found (are you missing a using directive or an assembly reference?)
了我INotifyPropertyChanging
已經從wp8.1刪除?
更新1: 有幾個人提到它應該在System.ComponentModel
命名空間。 我只是快速查找和智能說,這是有效的
System.ComponentModel.INotifyPropertyChanged
但這不是
System.ComponentModel.INotifyPropertyChanging
根據MSDN頁面,它在Windows Phone 8.1和Windows Phone Silverlight 8.1中。你是不是錯過了'使用'聲明? – TyCobb 2015-01-20 21:29:06
正如錯誤消息所示:確保包含必需的DLL引用(System.dll),並且您要麼將類型名稱指定爲完全限定名稱(即'System.ComponentModel.INotifyPropertyChanging'),要麼將您指定爲在你的.cs文件中需要'使用System.ComponentModel;'。 – 2015-01-20 21:34:12
'使用System.ComponentModel'已經在.cs文件中。該文件是使用Devart Entity Developer爲我生成的。此文件在Windows Phone Silverlight中正常工作,但不是通用的。 – Gaz83 2015-01-20 21:37:32