|
1 | 1 | using System;
|
2 |
| -using System.Data.Common; |
3 | 2 | using MySql.Data.Serialization;
|
4 | 3 |
|
5 |
| -namespace MySql.Data.MySqlClient |
| 4 | +#if !NETSTANDARD1_3 && !NETSTANDARD2_0 |
| 5 | +namespace System.Data.Common |
6 | 6 | {
|
7 |
| - public sealed class MySqlDbColumn |
8 |
| -#if NETSTANDARD1_3 || NETSTANDARD2_0 |
9 |
| - : DbColumn |
| 7 | + public abstract class DbColumn |
| 8 | + { |
| 9 | + public bool? AllowDBNull { get; protected set; } |
| 10 | + public string BaseCatalogName { get; protected set; } |
| 11 | + public string BaseColumnName { get; protected set; } |
| 12 | + public string BaseSchemaName { get; protected set; } |
| 13 | + public string BaseServerName { get; protected set; } |
| 14 | + public string BaseTableName { get; protected set; } |
| 15 | + public string ColumnName { get; protected set; } |
| 16 | + public int? ColumnOrdinal { get; protected set; } |
| 17 | + public int? ColumnSize { get; protected set; } |
| 18 | + public bool? IsAliased { get; protected set; } |
| 19 | + public bool? IsAutoIncrement { get; protected set; } |
| 20 | + public bool? IsExpression { get; protected set; } |
| 21 | + public bool? IsHidden { get; protected set; } |
| 22 | + public bool? IsIdentity { get; protected set; } |
| 23 | + public bool? IsKey { get; protected set; } |
| 24 | + public bool? IsLong { get; protected set; } |
| 25 | + public bool? IsReadOnly { get; protected set; } |
| 26 | + public bool? IsUnique { get; protected set; } |
| 27 | + public int? NumericPrecision { get; protected set; } |
| 28 | + public int? NumericScale { get; protected set; } |
| 29 | + public string UdtAssemblyQualifiedName { get; protected set; } |
| 30 | + public Type DataType { get; protected set; } |
| 31 | + public string DataTypeName { get; protected set; } |
| 32 | + public virtual object this[string property] => null; |
| 33 | + } |
| 34 | +} |
10 | 35 | #endif
|
| 36 | + |
| 37 | +namespace MySql.Data.MySqlClient |
| 38 | +{ |
| 39 | + public sealed class MySqlDbColumn : System.Data.Common.DbColumn |
11 | 40 | {
|
12 | 41 | internal MySqlDbColumn(int ordinal, ColumnDefinitionPayload column, Type type, string dataTypeName)
|
13 | 42 | {
|
@@ -47,30 +76,5 @@ internal MySqlDbColumn(int ordinal, ColumnDefinitionPayload column, Type type, s
|
47 | 76 | }
|
48 | 77 |
|
49 | 78 | public int ProviderType { get; }
|
50 |
| - |
51 |
| -#if !NETSTANDARD1_3 && !NETSTANDARD2_0 |
52 |
| - public bool? AllowDBNull { get; } |
53 |
| - public string BaseCatalogName { get; } |
54 |
| - public string BaseColumnName { get; } |
55 |
| - public string BaseSchemaName { get; } |
56 |
| - public string BaseTableName { get; } |
57 |
| - public string ColumnName { get; } |
58 |
| - public int? ColumnOrdinal { get; } |
59 |
| - public int? ColumnSize { get; } |
60 |
| - public Type DataType { get; } |
61 |
| - public string DataTypeName { get; } |
62 |
| - public bool? IsAliased { get; } |
63 |
| - public bool? IsAutoIncrement { get; } |
64 |
| - public bool? IsExpression { get; } |
65 |
| - public bool? IsHidden { get; } |
66 |
| - public bool? IsIdentity { get; } |
67 |
| - public bool? IsKey { get; } |
68 |
| - public bool? IsLong { get; } |
69 |
| - public bool? IsReadOnly { get; } |
70 |
| - public bool? IsUnique { get; } |
71 |
| - public int? NumericPrecision { get; } |
72 |
| - public int? NumericScale { get; } |
73 |
| - public string UdtAssemblyQualifiedName { get; } |
74 |
| -#endif |
75 | 79 | }
|
76 | 80 | }
|
0 commit comments