我无法让IDataErrorInfo验证将Required属性设置为Required属性(或ReferenceKey)并且包含null作为初始值的引用属性。我使用的是WPF + EF 4.1。验证是通过数据注释和IDataErrorInfo完成的。对于每个属性,除了不能包含null的引用属性之外,一切都运行正常。这些属性包含null作为默认值,并且我不能将其设置为任何其他值。这实际上意味着这个字符串propertyName永远不会为引用属性执行,因此UI不会捕获任何验证错误。我继承了Re
在编译时捕获错误:error C3766: 'Sample::NoteInfo' must provide an implementation for the interfacemethod 'System::String ^System::ComponentModel::IDataErrorInfo::default::get(System::String ^)'
d:\dev为什么VS编译器认为这是没有实现的?//Returns an error des