-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using PK with HasColumnType causes strange migrations for Owned Types #27619
Labels
area-migrations
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
punted-for-7.0
Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints.
type-bug
Milestone
Comments
midczak
changed the title
PK with HasColumnType generates strange migration for Owned Types
Using PK with HasColumnType causes strange migrations for Owned Types
Mar 11, 2022
@midczak Have you tried this with 6.0.3? |
@ajcvickers Just tested with 6.0.3, the bug is still there |
@ajcvickers Is there any workaround for this in v5.* or v6.*? |
@midczak Try converting directly to binary. This will avoid EF Core composing two converters together to go from your type to Guid, and then Guid to binary. |
Related: #27549 |
ajcvickers
added
the
punted-for-7.0
Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints.
label
Sep 16, 2022
AndriySvyryd
added
the
verify-fixed
This issue is likely fixed in new query pipeline.
label
Oct 4, 2022
Verified that this has been fixed sometime during the 7.0 release. |
AndriySvyryd
added
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
and removed
verify-fixed
This issue is likely fixed in new query pipeline.
labels
Aug 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-migrations
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
punted-for-7.0
Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints.
type-bug
Configuring table with PK that have custom column type (HasColumnType) and conversion (HasConversion) produces strange results in migrations
Steps to reproduce:
The result is correct
Migration produces unexpected results, event there were no changes in the model. Every next migration will produce this result.
Include provider and version information
EF Core version: 5.0.15
Database provider: tested on Microsoft.EntityFrameworkCore.SqlServer and Pomelo.EntityFrameworkCore.MySql
Target framework: .NET 5.0
Operating system: Windows 10
IDE: VS 2022 (version 17.1.0)
The text was updated successfully, but these errors were encountered: