Class ConfigurationValidationBase
- Namespace
- RetailForce.Fiscalisation.Configuration
- Assembly
- RetailForce.Fiscalisation.Model.dll
Base class for all configuration objects with validation.
public abstract class ConfigurationValidationBase : ValidationPropertyBase<ValidationError>
- Inheritance
-
objectValidationBase<ValidationError>ValidationPropertyBase<ValidationError>ConfigurationValidationBase
- Derived
- Inherited Members
-
ValidationPropertyBase<ValidationError>.Validate()
Properties
DisableAuditLogDateCheck
True if the country module does not need to check ascending record date time of audit log records; otherwise false.
public bool DisableAuditLogDateCheck { get; set; }
Property Value
- bool
VALIDATION_ERROR_SOURCE
The correct validation error source for "ConfigurationValidation"
protected override string VALIDATION_ERROR_SOURCE { get; }
Property Value
- string
Methods
AddPropertyError(ErrorLevel, string, string, string)
Adds a property attribute error with to correct implementation of ValidationErrorType.
protected override ValidationError AddPropertyError(ErrorLevel level, string declaringTypeName, string propertyName, string errorString)
Parameters
levelErrorLevelThe level of the property error.
declaringTypeNamestringThe name of the declaring type of the property with the validation error.
propertyNamestringThe name of the property with the validation error.
errorStringstringThe error description of the property error.
Returns
- ValidationError
The created RetailForce.Common.Validation.ValidationError.
ValidateCountrySpecificProperty<CountryRequiredAttributeType>()
Validates the country specific property.
public List<ValidationError> ValidateCountrySpecificProperty<CountryRequiredAttributeType>() where CountryRequiredAttributeType : RequiredAttribute
Returns
- List<ValidationError>
Type Parameters
CountryRequiredAttributeTypeThe type of the ountry required attribute type.
ValidateElement()
Validates the element with element specific validation and returns a list of validation errors.
protected override List<ValidationError> ValidateElement()
Returns
- List<ValidationError>
A list of RetailForce.Common.Validation.ValidationError objects.