dotnet / dotnet/efcore

Fully qualify CLR types in migrations when needed

Open
#27,086 3 comments 1 reaction 0 assignees View on GitHub
area-migrations customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Our migration and model snapshot reference property CLR types, but if the type name happens to be ambiguous, the migration doesn't compile. We need to full-qualify the CLR type with its namespace when needed.

Flagged by @kosmakoff in https://github.com/npgsql/efcore.pg/issues/1976, where two enum types with the same name are referenced.

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.