dotnet / dotnet/efcore

AlterColumnOperation.OldColumn is missing some details

Open
#28,041 0 comments 0 reactions 0 assignees View on GitHub
area-migrations
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

The OldColumn on AlterColumnOperation has null Schema, Table and Name - these are only populated on the main column. I get that these should be identical between the old and new column, but in various code which treats the old column separately (e.g. to look up the table in the relational model), this causes some friction (nothing too serious).

The relevant code is here: https://github.com/dotnet/efcore/blob/main/src/EFCore.Relational/Migrations/Internal/MigrationsModelDiffer.cs#L1002

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.