I want to Validate (IDataErrorInfo) of my properties which are generated through the Telerik OpenAccess Mapper.
Like this.
public partial class Etage
{
private long _version;
public virtual long Version
{
get
{
return this._version;
}
set
{
this._version = value;
}
}...
Now i want to override the property "Version" in my second class Etage (also partial) like this.
public partial class Etage : IComparable
{
public override long Version
{
get { return _version; }
set { _version = value+200; }
}
// Some Validation in the Setter later...
public override string ToString()
{
return String.Format("{0}", Version);
}
}
Then i get the following Error:
Ambiguity between 'Inventar.Model.Etage.Version' and 'Inventar.Model.Etage.Version'