I'm testing the migration with EF Core with MSSQL-Server and Firebird 3.0.
I create a new table with a few fields. The key-field has the property .ValueGeneratedOnAdd()
, but the key-field in the Firebird database doesn't get an auto-increment during the migration. It works with the MS-SQL-Server correctly.
I use the framework FirebirdSql.EntityFrameworkCore.Firebird version 6.6.0.
modelBuilder.Entity("GenerateCodeFromDB.DB_Modell.TblTest", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnName("ID")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<DateTime?>("Date");
b.Property<string>("Name")
.HasMaxLength(50);
b.Property<int?>("Number");
b.HasKey("Id");
b.ToTable("tblTest");
});