Class Rule
- Namespace
- Dynamicweb.Ecommerce.Orders.Validation.Rules
- Assembly
- Dynamicweb.Ecommerce.dll
The class Rule represents validation rule.
- Inheritance
-
Rule
- Derived
- Inherited Members
Properties
Id
Gets or sets the rule id.
Property Value
Parameters
Gets or sets rule parameters.
Property Value
ValidationId
Gets or sets Validation id.
Property Value
Methods
Delete()
Deletes this rule.
Delete(bool)
Deletes this rule.
Parameters
doKillCache
boolIndicates whether to clear the caches after delete.
GetRuleTypes()
Gets all the rule types.
Returns
GetRuleTypes(bool)
Gets all the rule types.
Parameters
doSort
boolIndicates whether to sort rules.
Returns
GetRules(string)
Gets rules for the provided Validation id.
Parameters
ruleValidationId
stringThe validation id.
Returns
GetRules(string[])
Gets rules by provided ids.
Parameters
ids
string[]The rules ids.
Returns
GetRulesBySql(string)
Gets rules by sql query..
Parameters
query
stringThe query.
Returns
Save()
Saves this rule.
Save(bool)
Saves this rule.
Parameters
doKillCache
boolIndicates whether to clear the caches after save.
TryParse(string, ref double)
Parameters
Returns
Validates(string)
Validates value with rule.
Parameters
value
stringThe value to validate.
Returns
- bool
Value indicating whether value valid according to rule.