-
Notifications
You must be signed in to change notification settings - Fork 8
/
TableValidity.cs
54 lines (35 loc) · 1.39 KB
/
TableValidity.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System.Text.Json.Serialization;
namespace NimbleBlazor;
public interface ITableValidity
{
public bool DuplicateRecordId { get; }
public bool MissingRecordId { get; }
public bool InvalidRecordId { get; }
public bool DuplicateColumnId { get; }
public bool MissingColumnId { get; }
public bool InvalidColumnConfiguration { get; }
public bool DuplicateSortIndex { get; }
public bool DuplicateGroupIndex { get; }
public bool IdFieldNameNotConfigured { get; }
}
internal sealed class TableValidity : ITableValidity
{
[JsonPropertyName("duplicateRecordId")]
public bool DuplicateRecordId { get; set; }
[JsonPropertyName("missingRecordId")]
public bool MissingRecordId { get; set; }
[JsonPropertyName("invalidRecordId")]
public bool InvalidRecordId { get; set; }
[JsonPropertyName("duplicateColumnId")]
public bool DuplicateColumnId { get; set; }
[JsonPropertyName("missingColumnId")]
public bool MissingColumnId { get; set; }
[JsonPropertyName("invalidColumnConfiguration")]
public bool InvalidColumnConfiguration { get; set; }
[JsonPropertyName("duplicateSortIndex")]
public bool DuplicateSortIndex { get; set; }
[JsonPropertyName("duplicateGroupIndex")]
public bool DuplicateGroupIndex { get; set; }
[JsonPropertyName("idFieldNameNotConfigured")]
public bool IdFieldNameNotConfigured { get; set; }
}