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()

ValidationGroup(IDataReader)

Initializes a new instance of the ValidationGroup class.
[Obsolete("This method is no longer used.")]
public ValidationGroup(IDataReader dataReader)

Parameters

dataReader IDataReader
The data reader.

ValidationGroup(string, string)

Initializes a new instance of the ValidationGroup class.
[Obsolete("Use GetValidationGroupById(string id) instead.")]
public ValidationGroup(string id, string languageId)

Parameters

id string
The group id.
languageId string
The group language id.

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

Language

Gets validation group language.
[Obsolete("Use translations instead.")]
public Language Language { get; }

Property Value

Language

Name

Gets or sets validation group name.
[Obsolete("Use GetName and SetName instead.")]
public string Name { 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

GetValidationGroupById(string, string)

Gets Validation Group by its ID and language.
[Obsolete("Use GetValidationGroupById(string id).")]
public static ValidationGroup GetValidationGroupById(string id, string languageId)

Parameters

id string
Validation Group IDs.
languageId string
Ecommerce Language.

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

GetValidationGroups(List<string>, string)

Gets validation groups Collection by certain IDs and language.
[Obsolete("Use GetValidationGroups(List<string> groups) instead.")]
public static ValidationGroupCollection GetValidationGroups(List<string> groups, string languageId)

Parameters

groups List<string>
List of group IDs.
languageId string
eCommerce Language.

Returns

ValidationGroupCollection

GetValidationGroups(string)

Gets validation groups by languageID.
[Obsolete("Use GetValidationGroups() instead.")]
public static ValidationGroupCollection GetValidationGroups(string languageId)

Parameters

languageId string
eCommerce Language.

Returns

ValidationGroupCollection

GetValidationGroupsBySql(string)

Gets Validation Group by sql query.
[Obsolete("Use GetValidationGroups().")]
public static ValidationGroupCollection GetValidationGroupsBySql(string query)

Parameters

query string
The sql query.

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