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
Properties
DefaultName
public string DefaultName { get; set; }
Property Value
DoNotValidateIfAllFieldsAreEmpty
Do not validate when all fields are empty
public bool DoNotValidateIfAllFieldsAreEmpty { get; set; }
Property Value
Id
Gets or sets validation group id.
public string Id { get; set; }
Property Value
Language
Gets validation group language.
[Obsolete("Use translations instead.")]
public Language Language { get; }
Property Value
Name
Gets or sets validation group name.
[Obsolete("Use GetName and SetName instead.")]
public string Name { get; set; }
Property Value
Translations
Gets the translations for the current entity
public TranslationCollection<ValidationGroupTranslation> Translations { get; }
Property Value
Validations
Gets or sets validation group ValidationCollection.
public ValidationCollection Validations { get; set; }
Property Value
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
GetValidationGroupById(string)
Gets Validation Group by its ID in default language.
public static ValidationGroup GetValidationGroupById(string id)
Parameters
id
string- Validation Group IDs.
Returns
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
Returns
GetValidationGroups()
Gets validation groups collection.
public static ValidationGroupCollection GetValidationGroups()
Returns
GetValidationGroups(List<string>)
Gets validation groups Collection by certain IDs in default language.
public static ValidationGroupCollection GetValidationGroups(List<string> groups)
Parameters
Returns
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
Returns
GetValidationGroups(string)
Gets validation groups by languageID.
[Obsolete("Use GetValidationGroups() instead.")]
public static ValidationGroupCollection GetValidationGroups(string languageId)
Parameters
languageId
string- eCommerce Language.
Returns
GetValidationGroupsBySql(string)
Gets Validation Group by sql query.
[Obsolete("Use GetValidationGroups().")]
public static ValidationGroupCollection GetValidationGroupsBySql(string query)
Parameters
query
string- The sql query.
Returns
Save()
Saves this validation group.
public void Save()
SaveTranslation()
public void SaveTranslation()
SetName(string, string)
public void SetName(string languageId, string name)