Table of Contents

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
object
ValidationBase<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

level ErrorLevel

The level of the property error.

declaringTypeName string

The name of the declaring type of the property with the validation error.

propertyName string

The name of the property with the validation error.

errorString string

The 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

CountryRequiredAttributeType

The 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.