C# 클래스 Nettiers.AdventureWorks.Entities.EntityBaseCore

상속: IEntity, INotifyPropertyChanged, IDataErrorInfo, IDeserializationCallback, INotifyPropertyChanging
파일 보기 프로젝트 열기: netTiers/netTiers

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AcceptChanges ( ) : void

Accepts the changes made to this object.

After calling this method IsDirty and IsNew are false. IsDeleted flag remain unchanged as it is handled by the parent List.

AddValidationRuleHandler ( System.Validation handler, String propertyName ) : void

Adds a rule to the list of validated rules.

AddValidationRuleHandler ( System.Validation handler, System.Validation args ) : void

Adds a rule to the list of validated rules.

CancelChanges ( ) : void

Revert all changes and restore original values. To be implemented in concrete class.

GetHashCode ( ) : int

Provides a unique HashCode throughout the lifetime of the entity.

IsPropertyChanged ( string columnName ) : bool

Determines whether the property value has changed from the original data.

MarkToDelete ( ) : void

Marks entity to be deleted.

OnDeserialization ( object sender ) : void

Runs when the entire object graph has been deserialized.

RemoveDeleteMark ( ) : void

Remove the "isDeleted" mark from the entity.

Validate ( ) : void

Force this object to validate itself using the assigned business rules.

Validates all properties.

Validate ( System column ) : void

Force the object to validate itself using the assigned business rules.

Validate ( string propertyName ) : void

Force the object to validate itself using the assigned business rules.

this ( string columnName ) : string

Gets the T:String with the specified column name.

보호된 메소드들

메소드 설명
AddValidationRules ( ) : void

Assigns validation rules to this object.

This method can be overridden in a derived class to add custom validation rules.

EntityBaseCore ( ) : System

Initializes a new instance of the T:EntityBaseCore class.

OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Called when a property is changed

OnPropertyChanged ( string propertyName ) : void

Called when a property is changed

OnPropertyChanging ( PropertyChangingEventArgs e ) : void

Called when a property is changing

OnPropertyChanging ( string propertyName ) : void

Called when a property is changing

메소드 상세

AcceptChanges() 공개 메소드

Accepts the changes made to this object.
After calling this method IsDirty and IsNew are false. IsDeleted flag remain unchanged as it is handled by the parent List.
public AcceptChanges ( ) : void
리턴 void

AddValidationRuleHandler() 공개 메소드

Adds a rule to the list of validated rules.
public AddValidationRuleHandler ( System.Validation handler, String propertyName ) : void
handler System.Validation The method that implements the rule.
propertyName String /// The name of the property on the target object where the rule implementation can retrieve /// the value to be validated. ///
리턴 void

AddValidationRuleHandler() 공개 메소드

Adds a rule to the list of validated rules.
public AddValidationRuleHandler ( System.Validation handler, System.Validation args ) : void
handler System.Validation The method that implements the rule.
args System.Validation /// A object specifying the property name and other arguments /// passed to the rule method ///
리턴 void

AddValidationRules() 보호된 메소드

Assigns validation rules to this object.
This method can be overridden in a derived class to add custom validation rules.
protected AddValidationRules ( ) : void
리턴 void

CancelChanges() 공개 추상적인 메소드

Revert all changes and restore original values. To be implemented in concrete class.
public abstract CancelChanges ( ) : void
리턴 void

EntityBaseCore() 보호된 메소드

Initializes a new instance of the T:EntityBaseCore class.
protected EntityBaseCore ( ) : System
리턴 System

GetHashCode() 공개 메소드

Provides a unique HashCode throughout the lifetime of the entity.
public GetHashCode ( ) : int
리턴 int

IsPropertyChanged() 공개 추상적인 메소드

Determines whether the property value has changed from the original data.
public abstract IsPropertyChanged ( string columnName ) : bool
columnName string The column name.
리턴 bool

MarkToDelete() 공개 메소드

Marks entity to be deleted.
public MarkToDelete ( ) : void
리턴 void

OnDeserialization() 공개 메소드

Runs when the entire object graph has been deserialized.
public OnDeserialization ( object sender ) : void
sender object The object that initiated the callback. The functionality for this parameter is not currently implemented.
리턴 void

OnPropertyChanged() 보호된 메소드

Called when a property is changed
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs PropertyChangedEventArgs
리턴 void

OnPropertyChanged() 보호된 메소드

Called when a property is changed
protected OnPropertyChanged ( string propertyName ) : void
propertyName string The name of the property that has changed.
리턴 void

OnPropertyChanging() 보호된 메소드

Called when a property is changing
protected OnPropertyChanging ( PropertyChangingEventArgs e ) : void
e System.ComponentModel.PropertyChangingEventArgs PropertyChangingEventArgs
리턴 void

OnPropertyChanging() 보호된 메소드

Called when a property is changing
protected OnPropertyChanging ( string propertyName ) : void
propertyName string The name of the property that is changing.
리턴 void

RemoveDeleteMark() 공개 메소드

Remove the "isDeleted" mark from the entity.
public RemoveDeleteMark ( ) : void
리턴 void

Validate() 공개 메소드

Force this object to validate itself using the assigned business rules.
Validates all properties.
public Validate ( ) : void
리턴 void

Validate() 공개 메소드

Force the object to validate itself using the assigned business rules.
public Validate ( System column ) : void
column System Column enumeration representing the column to validate.
리턴 void

Validate() 공개 메소드

Force the object to validate itself using the assigned business rules.
public Validate ( string propertyName ) : void
propertyName string Name of the property to validate.
리턴 void

this() 공개 메소드

Gets the T:String with the specified column name.
public this ( string columnName ) : string
columnName string
리턴 string