CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Rules.IBusinessRuleBase Interface Reference

Interface defining a business/validation rule implementation. More...

Inheritance diagram for Csla.Rules.IBusinessRuleBase:
Csla.Rules.BusinessRuleBase Csla.Rules.IBusinessRule Csla.Rules.IBusinessRuleAsync Csla.Rules.BusinessRule Csla.Rules.BusinessRuleAsync Csla.Rules.BusinessRule Csla.Rules.BusinessRuleAsync Csla.Analyzers.IntegrationTests.AsynchronousRuleOldSchool Csla.Analyzers.IntegrationTests.ExecuteWithAdd Csla.Analyzers.IntegrationTests.ExecuteWithAddAndNameof Csla.Analyzers.IntegrationTests.ExecuteWithoutAdd Csla.Rules.CommonRules.DataAnnotation Csla.Rules.CommonRules.Dependency Csla.Rules.CommonRules.InfoMessage Csla.Rules.CommonRules.Lambda Csla.Rules.ObjectRule Csla.Rules.PropertyRule Csla.Test.LogicalExecutionLocation.LocationBusinessBase.CheckRule Csla.Test.ValidationRules.BrokenRulesMergeRoot.RuleBroken Csla.Test.ValidationRules.CheckLazyInputFieldExists Csla.Test.ValidationRules.HasAsyncRule.Rule1 Csla.Test.ValidationRules.HasAsyncRule.Rule2 Csla.Test.ValidationRules.HasAsyncRule.Rule3 Csla.Test.ValidationRules.HasBadSharedRule.BadRule Csla.Test.ValidationRules.HasChildren.OneItem< T > Csla.Test.ValidationRules.HasInvalidAsyncRule.InvalidAsyncValidationRule Csla.Test.ValidationRules.MyRule Csla.Test.ValidationRules.NoErrorRoot.AlwaysInfo Csla.Test.ValidationRules.NoErrorRoot.AlwaysWarns Csla.Test.ValidationRules.SeverityRoot.AlwaysError Csla.Test.ValidationRules.SeverityRoot.AlwaysInfo Csla.Test.ValidationRules.SeverityRoot.AlwaysWarns Csla.Test.ValidationRules.ShortCircuit.AlwaysFails Csla.Test.ValidationRules.ShortCircuit.AlwaysWarns Csla.Test.ValidationRules.TwoProps Csla.Test.ValidationRules.ИзилдрRule Csla.Testing.Business.BusyStatus.ItemWithAsynchRule.FiveSecondsLongRule Csla.Testing.Business.Validation.ИзилдрRule Csla.Analyzers.IntegrationTests.AsynchronousRuleNewSchool Csla.Analyzers.IntegrationTests.CallingComplete Csla.Analyzers.IntegrationTests.CallingCompleteWithNameof Csla.Rules.ObjectRuleAsync Csla.Rules.PropertyRuleAsync Csla.Testing.Business.BusyStatus.ItemWithAsynchRule.TwoSecondsLongRule Csla.Analyzers.IntegrationTests.AsynchronousRuleOldSchool Csla.Analyzers.IntegrationTests.ExecuteWithAdd Csla.Analyzers.IntegrationTests.ExecuteWithAddAndNameof Csla.Analyzers.IntegrationTests.ExecuteWithoutAdd Csla.Rules.CommonRules.DataAnnotation Csla.Rules.CommonRules.Dependency Csla.Rules.CommonRules.InfoMessage Csla.Rules.CommonRules.Lambda Csla.Rules.ObjectRule Csla.Rules.PropertyRule Csla.Test.LogicalExecutionLocation.LocationBusinessBase.CheckRule Csla.Test.ValidationRules.BrokenRulesMergeRoot.RuleBroken Csla.Test.ValidationRules.CheckLazyInputFieldExists Csla.Test.ValidationRules.HasAsyncRule.Rule1 Csla.Test.ValidationRules.HasAsyncRule.Rule2 Csla.Test.ValidationRules.HasAsyncRule.Rule3 Csla.Test.ValidationRules.HasBadSharedRule.BadRule Csla.Test.ValidationRules.HasChildren.OneItem< T > Csla.Test.ValidationRules.HasInvalidAsyncRule.InvalidAsyncValidationRule Csla.Test.ValidationRules.MyRule Csla.Test.ValidationRules.NoErrorRoot.AlwaysInfo Csla.Test.ValidationRules.NoErrorRoot.AlwaysWarns Csla.Test.ValidationRules.SeverityRoot.AlwaysError Csla.Test.ValidationRules.SeverityRoot.AlwaysInfo Csla.Test.ValidationRules.SeverityRoot.AlwaysWarns Csla.Test.ValidationRules.ShortCircuit.AlwaysFails Csla.Test.ValidationRules.ShortCircuit.AlwaysWarns Csla.Test.ValidationRules.TwoProps Csla.Test.ValidationRules.ИзилдрRule Csla.Testing.Business.BusyStatus.ItemWithAsynchRule.FiveSecondsLongRule Csla.Testing.Business.Validation.ИзилдрRule Csla.Analyzers.IntegrationTests.AsynchronousRuleNewSchool Csla.Analyzers.IntegrationTests.CallingComplete Csla.Analyzers.IntegrationTests.CallingCompleteWithNameof Csla.Rules.ObjectRuleAsync Csla.Rules.PropertyRuleAsync Csla.Testing.Business.BusyStatus.ItemWithAsynchRule.TwoSecondsLongRule

Properties

List< Csla.Core.IPropertyInfoInputProperties [get]
 Gets a list of secondary property values to be supplied to the rule when it is executed. More...
 
List< Csla.Core.IPropertyInfoAffectedProperties [get]
 Gets a list of properties affected by this rule. More...
 
Csla.Core.IPropertyInfo PrimaryProperty [get]
 Gets the primary property affected by this rule. More...
 
string RuleName [get]
 Gets a unique rule:// URI for the specific instance of the rule within the context of the business object where the rule is used. More...
 
int Priority [get]
 Gets the rule priority. More...
 
bool ProvideTargetWhenAsync [get]
 Gets a value indicating that the Target property should be set even for an async rule (note that using Target from a background thread will cause major problems). More...
 
RunModes RunMode [get]
 Gets the context in which the rule is allowed to execute. More...
 
bool IsAsync [get]
 Gets a value indicating whether the Execute() method will run asynchronous code. More...
 

Detailed Description

Interface defining a business/validation rule implementation.

Definition at line 42 of file IBusinessRule.cs.

Property Documentation

◆ AffectedProperties

List<Csla.Core.IPropertyInfo> Csla.Rules.IBusinessRuleBase.AffectedProperties
get

Gets a list of properties affected by this rule.

Rules for these properties are executed after rules for the primary property.

Definition at line 54 of file IBusinessRule.cs.

◆ InputProperties

List<Csla.Core.IPropertyInfo> Csla.Rules.IBusinessRuleBase.InputProperties
get

Gets a list of secondary property values to be supplied to the rule when it is executed.

Definition at line 48 of file IBusinessRule.cs.

◆ IsAsync

bool Csla.Rules.IBusinessRuleBase.IsAsync
get

Gets a value indicating whether the Execute() method will run asynchronous code.

Definition at line 84 of file IBusinessRule.cs.

◆ PrimaryProperty

Csla.Core.IPropertyInfo Csla.Rules.IBusinessRuleBase.PrimaryProperty
get

Gets the primary property affected by this rule.

Definition at line 58 of file IBusinessRule.cs.

◆ Priority

int Csla.Rules.IBusinessRuleBase.Priority
get

Gets the rule priority.

Definition at line 68 of file IBusinessRule.cs.

◆ ProvideTargetWhenAsync

bool Csla.Rules.IBusinessRuleBase.ProvideTargetWhenAsync
get

Gets a value indicating that the Target property should be set even for an async rule (note that using Target from a background thread will cause major problems).

Definition at line 74 of file IBusinessRule.cs.

◆ RuleName

string Csla.Rules.IBusinessRuleBase.RuleName
get

Gets a unique rule:// URI for the specific instance of the rule within the context of the business object where the rule is used.

Definition at line 64 of file IBusinessRule.cs.

◆ RunMode

RunModes Csla.Rules.IBusinessRuleBase.RunMode
get

Gets the context in which the rule is allowed to execute.

The run in context.

Definition at line 79 of file IBusinessRule.cs.