generated from Avanade/avanade-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathReferenceDataValidation.cs
32 lines (27 loc) · 1.12 KB
/
ReferenceDataValidation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/CoreEx
using CoreEx.RefData;
namespace CoreEx.Validation
{
/// <summary>
/// Represents the standard <see cref="IReferenceData"/> validation configuration settings.
/// </summary>
public static class ReferenceDataValidation
{
/// <summary>
/// Gets or sets the maximum length for the <see cref="IReferenceData.Code"/>.
/// </summary>
public static int MaxCodeLength { get; set; } = 30;
/// <summary>
/// Gets or sets the maximum length for the <see cref="IReferenceData.Text"/>.
/// </summary>
public static int MaxTextLength { get; set; } = 256;
/// <summary>
/// Gets or sets the maximum length for the <see cref="IReferenceData.Description"/>.
/// </summary>
public static int MaxDescriptionLength { get; set; } = 1000;
/// <summary>
/// Indicates whether the <see cref="IReferenceData.Description"/> is supported.
/// </summary>
public static bool SupportsDescription { get; set; } = false;
}
}