Table of Contents

Class ValidationGroup

Namespace
Dynamicweb.Ecommerce.Orders.Validation
Assembly
Dynamicweb.Ecommerce.dll

The class ValidationGroup represents group of Validation.

[Serializable]
public class ValidationGroup
Inheritance
ValidationGroup
Inherited Members

Constructors

ValidationGroup()

Initializes a new instance of the ValidationGroup class.

public ValidationGroup()

Properties

DefaultName

public string DefaultName { get; set; }

Property Value

string

DoNotValidateIfAllFieldsAreEmpty

Do not validate when all fields are empty

public bool DoNotValidateIfAllFieldsAreEmpty { get; set; }

Property Value

bool

Id

Gets or sets validation group id.

public string Id { get; set; }

Property Value

string

Translations

Gets the translations for the current entity

public TranslationCollection<ValidationGroupTranslation> Translations { get; }

Property Value

TranslationCollection<ValidationGroupTranslation>

Validations

Gets or sets validation group ValidationCollection.

public ValidationCollection Validations { get; set; }

Property Value

ValidationCollection

Methods

ClearCache()

Clear cached validation groups.

public static void ClearCache()

Delete()

Deletes this validation group and all translations.

public void Delete()

DeleteTranslation(string)

Deletes the translated validation group.

public void DeleteTranslation(string languageId)

Parameters

languageId string

GetName(string)

public string GetName(string languageId)

Parameters

languageId string

Returns

string

GetValidationGroupById(string)

Gets Validation Group by its ID in default language.

public static ValidationGroup GetValidationGroupById(string id)

Parameters

id string

Validation Group IDs.

Returns

ValidationGroup

GetValidationGroups()

Gets validation groups collection.

public static ValidationGroupCollection GetValidationGroups()

Returns

ValidationGroupCollection

GetValidationGroups(List<string>)

Gets validation groups Collection by certain IDs in default language.

public static ValidationGroupCollection GetValidationGroups(List<string> groups)

Parameters

groups List<string>

List of group IDs.

Returns

ValidationGroupCollection

Save()

Saves this validation group.

public void Save()

SaveTranslation()

public void SaveTranslation()

SetName(string, string)

public void SetName(string languageId, string name)

Parameters

languageId string
name string
To top