-
-
Notifications
You must be signed in to change notification settings - Fork 393
Open
Description
Currently, extension methods are called in migrations as in the following example:
modelBuilder.Entity("IssueConsoleTemplate.IceCream", b =>
{
b.Property<int>("IceCreamId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("IceCreamId"));
b.Property<string>("Name")
.HasColumnType("longtext");
MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("Name"), "latin1");
}):
A better representation would be the following one (which I believe has worked in some earlier release trains):
modelBuilder.Entity("IssueConsoleTemplate.IceCream", b =>
{
b.Property<int>("IceCreamId")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.UseMySqlIdentityColumn("IceCreamId");
b.Property<string>("Name")
.HasColumnType("longtext")
.HasCharSet("latin1");
}):
Technical details (please complete the following information):
- Pomelo.EntityFrameworkCore.MySql version: at least in 9.0 (need to check other release trains)
Metadata
Metadata
Assignees
Labels
No labels