Class Validation
- Namespace
- Dynamicweb.Ecommerce.Orders.Validation
- Assembly
- Dynamicweb.Ecommerce.dll
The class Validation represents order validation service.
- Inheritance
-
Validation
- Inherited Members
Constructors
Validation()
Initializes a new instance of the Validation class.
Validation(IDataReader)
Initializes a new instance of the Validation class.
Parameters
dataReader
IDataReader The data reader.
Properties
FieldName
Gets or sets the validation field name.
Property Value
FieldType
Gets or sets the validation field type.
Property Value
GroupId
Gets or sets the validation group id.
Property Value
Id
Gets or sets the validation id.
Property Value
Rules
Gets or sets the validation rules.
Property Value
UseAndOperator
Gets or sets value indicating whether to use and operator during validation process.
Property Value
Methods
Delete()
Deletes this validation.
Delete(bool)
Deletes this validation.
Parameters
doKillCache
boolSets value indication whether to clear the caches after delete.
GetTranslatedName()
Gets the validation field translated name.
Returns
GetValidationById(string)
Gets the validation by id.
Parameters
id
stringThe validation id.
Returns
GetValidations(string)
Gets the validations by validation group id.
Parameters
validationGroupId
stringThe validation group id.
Returns
GetValidations(string[])
Gets the validations by validation ids.
Parameters
ids
string[]The validation ids.
Returns
GetValidationsBySql(string)
Gets the validations by sql query.
Parameters
query
stringThe sql query.
Returns
Save()
Saves this validation.
Save(bool)
Saves this validation.
Parameters
doKillCache
boolSets value indication whether to clear the caches after save.
Validates(string)
Validates value through all the Rules.
Parameters
value
stringThe value to validate.
Returns
Remarks
If Usetrue
then all the rules must be valid, otherwise - at least one of them.