[EF.Core-1.1.0] Unexpected default index name

[EF.Core-1.1.0] Unexpected default index name

Postby azabluda » Mon 12 Dec 2016 10:58

Version 9.2.162 doesn't seem to like explicitly named indexes anymore
Code: Select all
var user = modelBuilder.Entity<User>();
...
user.HasIndex(u => u.Name).HasName("USER_NAME_IDX"); // also tried .ForOracleHasName()

Code: Select all
Result StackTrace:   
at Devart.Common.Entity.Migrations.h.a(String A_0, String A_1, Boolean A_2, Boolean A_3)
   at Devart.Common.Entity.Migrations.h.a(k A_0, Boolean A_1)
   at Devart.Common.Entity.Migrations.h.a(CreateIndexOperation A_0)
   at Devart.Data.Oracle.Entity.Migrations.e.a(CreateIndexOperation A_0)
   at Devart.Common.Entity.Migrations.h.b(MigrationOperation A_0)
   at Devart.Common.Entity.Migrations.h.a(IEnumerable`1 A_0)
   at Devart.Common.Entity.Migrations.g.a(IEnumerable`1 A_0, bq A_1)
   at Devart.Data.Oracle.Entity.Migrations.OracleEntityMigrationSqlGenerator.Generate(IReadOnlyList`1 migrationOperations, IModel model)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.GetCreateTablesCommands()
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.CreateTables()
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.EnsureCreated()
   at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.EnsureCreated()


EDIT: I pushed a unit test to my repo.
azabluda
 
Posts: 34
Joined: Thu 10 Sep 2009 14:45

Re: [EF.Core-1.1.0] Unexpected default index name

Postby Shalex » Fri 16 Dec 2016 20:08

Thank you for your report. We are processing your request.
Shalex
Devart Team
 
Posts: 7839
Joined: Thu 14 Aug 2008 12:44

Re: [EF.Core-1.1.0] Unexpected default index name

Postby Shalex » Mon 19 Dec 2016 19:01

We have reproduced the issue and are investigating it. We will notify you about the result.
Shalex
Devart Team
 
Posts: 7839
Joined: Thu 14 Aug 2008 12:44

Re: [EF.Core-1.1.0] Unexpected default index name

Postby Shalex » Wed 21 Dec 2016 14:21

The bug with creating indices by EF Core Code-First migrations is fixed. We will notify you when the new build of dotConnect for Oracle is available for download.
Shalex
Devart Team
 
Posts: 7839
Joined: Thu 14 Aug 2008 12:44

Re: [EF.Core-1.1.0] Unexpected default index name

Postby Shalex » Thu 22 Dec 2016 18:40

The new build of dotConnect for Oracle 9.2.172 is available for download now: http://forums.devart.com/viewtopic.php?f=1&t=34762.
Shalex
Devart Team
 
Posts: 7839
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for Oracle