I have sucessfully implemented using the IDataErrorInfo interface in my entities for VB using the methods presented by prog posted on 16-nov-2005 (Implementin IDataErrorInfo and using ErrorProvider) thread 4766.
However, when I add a custom implementation of the IDataErrorInfo.Item property, I get a warning in VS 2005 saying the 'item' property is already implemented by the base class, EntityBase, re-implementation is assumed. See the following code I inserted:
Public ReadOnly Property Item(ByVal columnName As String) As String Implements IDataErrorInfo.Item
Get
Return foobar
End Get
End Property
My questions are,
1) what does the EntityBase Item (and Error) property return? (i.e., do I really need to 're-implement' it?
2) if I do need to reimplement it, how do I turn off the nagging error b/c I will re-implement it for every entity?
In my code above, foobar represents the validator class for the entity and returns the column name of the error.