Skip to content

Unable to get access to table alias name in data reader #1521

Closed
@AlexKerman

Description

@AlexKerman

When used multiple joins to the same table there no way to find out which alias current column belongs to.

SELECT * FROM Orders o LEFT JOIN Users u1 ON o.CreatedUserId = u1.Id LEFT JOIN Users u2 ON o.UpdatedUserId = u2.Id

Both users has BaseTableName "Users" in DbColumn, but no fields have "u1" and "u2" aliases.
ColumnDefinitionPayload class has PhysicalTableName and Table, but Table does not copy into MySqlDbColumn class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions