EF Core - Firebird Migration auto-increment problem
---------------------------------------------------

                 Key: DNET-884
                 URL: http://tracker.firebirdsql.org/browse/DNET-884
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 6.6.0.0
         Environment: Windows 8.1, Visual Studio 2019 (16.1.5), Firebird 
3.0-Database
            Reporter: Henning Hassmann
            Assignee: Jiri Cincura


Hi. 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");
});

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to