Skip to content

Commit 31c0852

Browse files
committed
Add documentation comments for TableName.
Signed-off-by: Bradley Grainger <[email protected]>
1 parent fb239d6 commit 31c0852

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/MySqlConnector/MySqlDbColumn.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ internal MySqlDbColumn(int ordinal, ColumnDefinitionPayload column, bool allowZe
2222
BaseColumnName = column.PhysicalName;
2323
BaseSchemaName = column.SchemaName;
2424
BaseTableName = column.PhysicalTable;
25-
TableName = column.Table;
2625
ColumnName = column.Name;
2726
ColumnOrdinal = ordinal;
2827
ColumnSize = columnSize > int.MaxValue ? int.MaxValue : unchecked((int) columnSize);
@@ -49,8 +48,13 @@ internal MySqlDbColumn(int ordinal, ColumnDefinitionPayload column, bool allowZe
4948
}
5049
NumericScale = column.Decimals;
5150
ProviderType = mySqlDbType;
51+
TableName = column.Table;
5252
}
5353

54-
public string TableName { get; }
5554
public MySqlDbType ProviderType { get; }
55+
56+
/// <summary>
57+
/// Gets the name of the table that the column belongs to. This will be the alias if the table is aliased in the query.
58+
/// </summary>
59+
public string TableName { get; }
5660
}

0 commit comments

Comments
 (0)