Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DbColumn.cs
Go to the documentation of this file.
1namespace System.Data.Common;
2
3public abstract class DbColumn
4{
5 public bool? AllowDBNull { get; protected set; }
6
7 public string? BaseCatalogName { get; protected set; }
8
9 public string? BaseColumnName { get; protected set; }
10
11 public string? BaseSchemaName { get; protected set; }
12
13 public string? BaseServerName { get; protected set; }
14
15 public string? BaseTableName { get; protected set; }
16
17 public string ColumnName { get; protected set; } = "";
18
19
20 public int? ColumnOrdinal { get; protected set; }
21
22 public int? ColumnSize { get; protected set; }
23
24 public bool? IsAliased { get; protected set; }
25
26 public bool? IsAutoIncrement { get; protected set; }
27
28 public bool? IsExpression { get; protected set; }
29
30 public bool? IsHidden { get; protected set; }
31
32 public bool? IsIdentity { get; protected set; }
33
34 public bool? IsKey { get; protected set; }
35
36 public bool? IsLong { get; protected set; }
37
38 public bool? IsReadOnly { get; protected set; }
39
40 public bool? IsUnique { get; protected set; }
41
42 public int? NumericPrecision { get; protected set; }
43
44 public int? NumericScale { get; protected set; }
45
46 public string? UdtAssemblyQualifiedName { get; protected set; }
47
48 public Type? DataType { get; protected set; }
49
50 public string? DataTypeName { get; protected set; }
51
52 public virtual object? this[string property] => property switch
53 {
54 "AllowDBNull" => AllowDBNull,
55 "BaseCatalogName" => BaseCatalogName,
56 "BaseColumnName" => BaseColumnName,
57 "BaseSchemaName" => BaseSchemaName,
58 "BaseServerName" => BaseServerName,
59 "BaseTableName" => BaseTableName,
60 "ColumnName" => ColumnName,
61 "ColumnOrdinal" => ColumnOrdinal,
62 "ColumnSize" => ColumnSize,
63 "IsAliased" => IsAliased,
64 "IsAutoIncrement" => IsAutoIncrement,
65 "IsExpression" => IsExpression,
66 "IsHidden" => IsHidden,
67 "IsIdentity" => IsIdentity,
68 "IsKey" => IsKey,
69 "IsLong" => IsLong,
70 "IsReadOnly" => IsReadOnly,
71 "IsUnique" => IsUnique,
72 "NumericPrecision" => NumericPrecision,
73 "NumericScale" => NumericScale,
74 "UdtAssemblyQualifiedName" => UdtAssemblyQualifiedName,
75 "DataType" => DataType,
76 "DataTypeName" => DataTypeName,
77 _ => null,
78 };
79}