![]() |
CSLA .NET 10.0.0
A home for your business logic
|
A business rule defined by a lambda expression. More...
Public Member Functions | |
| Lambda (Action< IRuleContext > rule) | |
| Creates an instance of the rule. | |
| Lambda (Core.IPropertyInfo primaryProperty, Action< IRuleContext > rule) | |
| Creates an instance of the rule. | |
| void | AddQueryParameter (string key, string value) |
| Add a query parameter to make the RuleUri uniques for this rule and primary property. | |
Protected Member Functions | |
| override void | Execute (IRuleContext context) |
| Executes the rule. | |
| Protected Member Functions inherited from Csla.Rules.BusinessRule | |
| BusinessRule () | |
| Creates an instance of the rule that applies to a business object as a whole. | |
| BusinessRule (Core.IPropertyInfo? primaryProperty) | |
| Creates an instance of the rule that applies to a specfic property. | |
| Protected Member Functions inherited from Csla.Rules.BusinessRuleBase | |
| void | CanWriteProperty (string argument) |
| Allows or blocks changing a property value. | |
| BusinessRuleBase (IPropertyInfo? primaryProperty) | |
| Creates an instance of the rule that applies to a specfic property. | |
| void | LoadProperty (object obj, IPropertyInfo propertyInfo, object? newValue) |
| Loads a property's managed field with the supplied value calling PropertyHasChanged if the value does change. | |
| object? | ReadProperty (object obj, IPropertyInfo propertyInfo) |
| Reads a property's field value. | |
Additional Inherited Members | |
| Properties inherited from Csla.Rules.BusinessRule | |
| override bool | IsAsync [get, protected set] |
| Gets a value indicating whether the rule will run on a background thread. | |
| Properties inherited from Csla.Rules.BusinessRuleBase | |
| bool | CascadeIfDirty [get, protected set] |
| If true, rule will only cascade if the primary property is dirty. | |
| bool | PropertiesLocked [get, set] |
| Gets or sets a value indicating whether property values should be locked because an async operation is running. | |
| virtual ? IPropertyInfo | PrimaryProperty [get, set] |
| Gets or sets the primary property affected by this rule. | |
| List< IPropertyInfo > | AffectedProperties [get] |
| Gets a list of properties affected by this rule. Rules for these properties are executed after rules for the primary property. | |
| List< IPropertyInfo > | InputProperties [get] |
| Gets a list of secondary property values to be supplied to the rule when it is executed. | |
| bool | IsAsync [get, protected set] |
| Gets a value indicating whether the rule will run on a background thread. | |
| bool | ProvideTargetWhenAsync [get, protected set] |
| 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). | |
| 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. | |
| RuleUri | RuleUri [get, set] |
| Sets or gets the rule:// URI object for this rule. | |
| int | Priority [get, set] |
| Gets the rule priority. | |
| RunModes | RunMode [get, set] |
| Gets or sets the run in context. | |
| int | DisplayIndex [get, set] |
| Gets the rule DisplayIndex in UI. | |
A business rule defined by a lambda expression.
|
inline |
Creates an instance of the rule.
| rule | Rule implementation. |
| ArgumentNullException | rule is null. |
|
inline |
Creates an instance of the rule.
| primaryProperty | Primary property for the rule. |
| rule | Rule implementation. |
| ArgumentNullException | primaryProperty or rule is null. |
|
inline |
Add a query parameter to make the RuleUri uniques for this rule and primary property.
| key | The key. |
| value | The value. |
| ArgumentNullException | key or value is null. |
|
inlineprotectedvirtual |