Method | Description | |
---|---|---|
AddValidationMethod ( string propertyName, Func method ) : void | ||
EntityBase ( ) : System | ||
GetErrors ( string propertyName ) : IEnumerable | ||
SetProperty ( string propertyName, &backingField, newValue ) : void | ||
Validate ( ValidationContext validationContext ) : IEnumerable |
Method | Description | |
---|---|---|
RaiseErrorsChanged ( string propertyName ) : void | ||
RaisePropertyChanged ( string propertyName ) : void | ||
RegisterValidationMethods ( ) : void |
Registers a validation method for each property.
|
|
ResetProperties ( ) : void |
Resets all properties to default values.
|
|
SetErrors ( string propertyName, IEnumerable errors ) : void |
Method | Description | |
---|---|---|
ValidateProperty ( string propertyName, newValue ) : bool |
public AddValidationMethod ( string propertyName, Func method ) : void | ||
propertyName | string | |
method | Func | |
return | void |
public GetErrors ( string propertyName ) : IEnumerable | ||
propertyName | string | |
return | IEnumerable |
protected RaiseErrorsChanged ( string propertyName ) : void | ||
propertyName | string | |
return | void |
protected RaisePropertyChanged ( string propertyName ) : void | ||
propertyName | string | |
return | void |
protected abstract RegisterValidationMethods ( ) : void | ||
return | void |
protected abstract ResetProperties ( ) : void | ||
return | void |
protected SetErrors ( string propertyName, IEnumerable errors ) : void | ||
propertyName | string | |
errors | IEnumerable | |
return | void |
public SetProperty ( string propertyName, &backingField, newValue ) : void | ||
propertyName | string | |
return | void |
public Validate ( ValidationContext validationContext ) : IEnumerable |
||
validationContext | ValidationContext | |
return | IEnumerable |