generated from Avanade/avanade-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDatabaseColumns.cs
109 lines (89 loc) · 5.03 KB
/
DatabaseColumns.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/CoreEx
using CoreEx.Entities;
using CoreEx.RefData;
namespace CoreEx.Database.Extended
{
/// <summary>
/// Represents the standard database column names.
/// </summary>
/// <remarks>These are used internally to map .NET properties to database column names.</remarks>
public class DatabaseColumns
{
/// <summary>
/// Gets or sets the <see cref="ChangeLog.CreatedDate"/> column name (defaults to <see cref="ChangeLog.CreatedDate"/>).
/// </summary>
public string CreatedDateName { get; set; } = nameof(ChangeLog.CreatedDate);
/// <summary>
/// Gets or sets the <see cref="ChangeLog.CreatedBy"/> column name (defaults to <see cref="ChangeLog.CreatedBy"/>).
/// </summary>
public string CreatedByName { get; set; } = nameof(ChangeLog.CreatedBy);
/// <summary>
/// Gets or sets the <see cref="ChangeLog.UpdatedDate"/> column name (defaults to <see cref="ChangeLog.UpdatedDate"/>).
/// </summary>
public string UpdatedDateName { get; set; } = nameof(ChangeLog.UpdatedDate);
/// <summary>
/// Gets or sets the <see cref="ChangeLog.UpdatedBy"/> column name (defaults to <see cref="ChangeLog.UpdatedBy"/>).
/// </summary>
public string UpdatedByName { get; set; } = nameof(ChangeLog.UpdatedBy);
/// <summary>
/// Gets or sets the '<c>ReselectRecord</c>' column name (defaults to '<c>ReselectRecord</c>'").
/// </summary>
public string ReselectRecordName { get; set; } = "ReselectRecord";
/// <summary>
/// Gets or sets the <see cref="PagingArgs.Skip"/> column name (defaults to '<c>PagingSkip</c>'").
/// </summary>
public string PagingSkipName { get; set; } = "PagingSkip";
/// <summary>
/// Gets or sets the <see cref="PagingArgs.Take"/> column name (defaults to '<c>PagingTake</c>'").
/// </summary>
public string PagingTakeName { get; set; } = "PagingTake";
/// <summary>
/// Gets or sets the <see cref="PagingArgs.IsGetCount"/> column name (defaults to '<c>PagingCount</c>'").
/// </summary>
public string PagingCountName { get; set; } = "PagingCount";
/// <summary>
/// Gets or sets the '<c>RowVersion</c>' column name (defaults to '<c>RowVersion</c>'").
/// </summary>
public string RowVersionName { get; set; } = "RowVersion";
/// <summary>
/// Gets or sets the <see cref="IETag.ETag"/> database column name (defaults to '<c>RowVersion</c>'").
/// </summary>
public string ETagName { get; set; } = "RowVersion";
/// <summary>
/// Gets or sets the '<c>ReturnValue</c>' column name.
/// </summary>
public string ReturnValueName { get; set; } = "ReturnValue";
/// <summary>
/// Gets or sets the <see cref="IReferenceData"/> <see cref="IIdentifier.Id"/> database column name (defaults to <see cref="IIdentifier.Id"/>).
/// </summary>
public string RefDataIdName { get; set; } = nameof(IReferenceData.Id);
/// <summary>
/// Gets or sets the <see cref="IReferenceData.Code"/> database column name (defaults to <see cref="IReferenceData.Code"/>).
/// </summary>
public string RefDataCodeName { get; set; } = nameof(IReferenceData.Code);
/// <summary>
/// Gets or sets the <see cref="IReferenceData.Text"/> database column name (defaults to <see cref="IReferenceData.Text"/>).
/// </summary>
public string RefDataTextName { get; set; } = nameof(IReferenceData.Text);
/// <summary>
/// Gets or sets the <see cref="IReferenceData.Description"/> database column name (defaults to <see cref="IReferenceData.Description"/>).
/// </summary>
public string RefDataDescriptionName { get; set; } = nameof(IReferenceData.Description);
/// <summary>
/// Gets or sets the <see cref="IReferenceData.SortOrder"/> database column name (defaults to <see cref="IReferenceData.SortOrder"/>).
/// </summary>
public string RefDataSortOrderName { get; set; } = nameof(IReferenceData.SortOrder);
/// <summary>
/// Gets or sets the <see cref="IReferenceData.IsActive"/> database column name (defaults to <see cref="IReferenceData.IsActive"/>).
/// </summary>
public string RefDataIsActiveName { get; set; } = nameof(IReferenceData.IsActive);
/// <summary>
/// Gets or sets the <see cref="IReferenceData.StartDate"/> database column name (defaults to <see cref="IReferenceData.StartDate"/>).
/// </summary>
public string RefDataStartDateName { get; set; } = nameof(IReferenceData.StartDate);
/// <summary>
/// Gets or sets the <see cref="IReferenceData.EndDate"/> database column name (defaults to <see cref="IReferenceData.EndDate"/>).
/// </summary>
public string RefDataEndDateName { get; set; } = nameof(IReferenceData.EndDate);
}
}