We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the following model...
public class Entity { public int Id { get; set; } public required Point Location { get; set; } } [ComplexType] public class Point { public int X { get; set; } public int Y { get; set; } }
...adding a migration generates the following code in the snapshot.
b.ComplexProperty<Dictionary<string, object>>("Location", "Entity.Location#Point", b1 => { .IsRequired() b1.Property<int>("X") .HasColumnType("int"); b1.Property<int>("Y") .HasColumnType("int"); });
It should be as follows
b.ComplexProperty<Dictionary<string, object>>("Location", "Entity.Location#Point", b1 => { - .IsRequired() + b1.IsRequired(); b1.Property<int>("X") .HasColumnType("int"); b1.Property<int>("Y") .HasColumnType("int"); });
This bug is present in 8.0 RC 1.
The text was updated successfully, but these errors were encountered:
Migrations: Fix ComplexPropertyBuilder.IsRequired call in snapshot
284e941
Fixes dotnet#31665, resolves dotnet#31414
Migrations: Fix ComplexPropertyBuilder.IsRequired call in snapshot (#…
63b1e0a
…31666) Fixes #31665, resolves #31414
bricelam
Successfully merging a pull request may close this issue.
With the following model...
...adding a migration generates the following code in the snapshot.
It should be as follows
This bug is present in 8.0 RC 1.
The text was updated successfully, but these errors were encountered: