C# Class nHydrate.EFCore.DataAccess.BaseEntity

Inheritance: INHEntityObject
Show file Open project: nHydrate/nHydrate

Public Methods

Method Description
GetRuleViolations ( ) : IEnumerable

Get the validation rule violations

IsEquivalent ( INHEntityObject item ) : bool

Test another entity object for equivalence against the current instance

IsValid ( ) : bool

Determines if all of the validation rules have been met

Protected Methods

Method Description
GetObjectDataErrorInfo ( ) : string

This method may be overridden to provide validation for entity objects

GetObjectPropertyDataErrorInfo ( string columnName ) : string

This method may be overridden to provide validation for entity properties

OnPropertyChanged ( System e ) : void
OnPropertyChanging ( System e ) : void

Method Details

GetObjectDataErrorInfo() protected method

This method may be overridden to provide validation for entity objects
protected GetObjectDataErrorInfo ( ) : string
return string

GetObjectPropertyDataErrorInfo() protected method

This method may be overridden to provide validation for entity properties
protected GetObjectPropertyDataErrorInfo ( string columnName ) : string
columnName string
return string

GetRuleViolations() public method

Get the validation rule violations
public GetRuleViolations ( ) : IEnumerable
return IEnumerable

IsEquivalent() public abstract method

Test another entity object for equivalence against the current instance
public abstract IsEquivalent ( INHEntityObject item ) : bool
item INHEntityObject
return bool

IsValid() public method

Determines if all of the validation rules have been met
public IsValid ( ) : bool
return bool

OnPropertyChanged() protected method

protected OnPropertyChanged ( System e ) : void
e System
return void

OnPropertyChanging() protected method

protected OnPropertyChanging ( System e ) : void
e System
return void