C# Class ExoRule.Validation.OwnerRule

Marks an instance as pending delete when a property considered to be the owner is set to null.
Inheritance: PropertyRule
Mostrar archivo Open project: vc3/ExoRule

Public Methods

Method Description
OwnerRule ( string rootType, string property ) : System
OwnerRule ( string rootType, string property, RuleInvocationType invocationTypes ) : System

Protected Methods

Method Description
ConditionApplies ( ModelInstance root ) : bool
OnInvoke ( ModelInstance root, ModelEvent modelEvent ) : void

Method Details

ConditionApplies() protected method

protected ConditionApplies ( ModelInstance root ) : bool
root ModelInstance
return bool

OnInvoke() protected method

protected OnInvoke ( ModelInstance root, ModelEvent modelEvent ) : void
root ModelInstance
modelEvent ExoModel.ModelEvent
return void

OwnerRule() public method

public OwnerRule ( string rootType, string property ) : System
rootType string
property string
return System

OwnerRule() public method

public OwnerRule ( string rootType, string property, RuleInvocationType invocationTypes ) : System
rootType string
property string
invocationTypes RuleInvocationType
return System