forked from Avanade/Beef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDatabaseRefDataColumns.cs
57 lines (47 loc) · 2.79 KB
/
DatabaseRefDataColumns.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
// Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef
using Beef.RefData;
namespace Beef.Data.Database
{
/// <summary>
/// Defines the standard <b>Reference Data</b> database column names.
/// </summary>
public static class DatabaseRefDataColumns
{
/// <summary>
/// Gets or sets the <see cref="ReferenceDataBase.Id"/> database column name (defaults to <see cref="ReferenceDataBase.Id"/>).
/// </summary>
public static string IdColumnName { get; set; } = nameof(ReferenceDataBase.Id);
/// <summary>
/// Gets or sets the <see cref="ReferenceDataBase.Code"/> database column name (defaults to <see cref="ReferenceDataBase.Code"/>).
/// </summary>
public static string CodeColumnName { get; set; } = nameof(ReferenceDataBase.Code);
/// <summary>
/// Gets or sets the <see cref="ReferenceDataBase.Text"/> database column name (defaults to <see cref="ReferenceDataBase.Text"/>).
/// </summary>
public static string TextColumnName { get; set; } = nameof(ReferenceDataBase.Text);
/// <summary>
/// Gets or sets the <see cref="ReferenceDataBase.Description"/> database column name (defaults to <see cref="ReferenceDataBase.Description"/>).
/// </summary>
public static string DescriptionColumnName { get; set; } = nameof(ReferenceDataBase.Description);
/// <summary>
/// Gets or sets the <see cref="ReferenceDataBase.SortOrder"/> database column name (defaults to <see cref="ReferenceDataBase.SortOrder"/>).
/// </summary>
public static string SortOrderColumnName { get; set; } = nameof(ReferenceDataBase.SortOrder);
/// <summary>
/// Gets or sets the <see cref="ReferenceDataBase.IsActive"/> database column name (defaults to <see cref="ReferenceDataBase.IsActive"/>).
/// </summary>
public static string IsActiveColumnName { get; set; } = nameof(ReferenceDataBase.IsActive);
/// <summary>
/// Gets or sets the <see cref="ReferenceDataBase.StartDate"/> database column name (defaults to <see cref="ReferenceDataBase.StartDate"/>).
/// </summary>
public static string StartDateColumnName { get; set; } = nameof(ReferenceDataBase.StartDate);
/// <summary>
/// Gets or sets the <see cref="ReferenceDataBase.EndDate"/> database column name (defaults to <see cref="ReferenceDataBase.EndDate"/>).
/// </summary>
public static string EndDateColumnName { get; set; } = nameof(ReferenceDataBase.EndDate);
/// <summary>
/// Gets or sets the <see cref="ReferenceDataBase.ETag"/> database column name (defaults to "RowVersion").
/// </summary>
public static string ETagColumnName { get; set; } = "RowVersion";
}
}