Bug #96914 migration not worked when name of property changed
| Submitted: | 18 Sep 2019 2:30 | Modified: | 28 May 2020 9:04 |
|---|---|---|---|
| Reporter: | heartice li | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | Connector / NET | Severity: | S2 (Serious) |
| Version: | OS: | Windows (windows 10) | |
| Assigned to: | CPU Architecture: | Any |
[28 Apr 2020 9:04]
MySQL Verification Team
Please try new version 6.0.20. Thanks.
[29 May 2020 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.064 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: Using efcore with code fist mode,enable migration. When one property of model changed, the migraion not worked and throw a NotImplementedException. How to repeat: In Visual Studio 2019 Ver. 16.2.3, I create a DbContext: public class EfDb : DbContext { public EfDb(DbContextOptions<EfDb> dbContextOptions) : base(dbContextOptions) { } public DbSet<User> Users { get; set; } } public class User { [Key] public long Id { get; set; } [MaxLength(32)] public string Name { get; set; } [MaxLength(64)] public string Pass { get; set; } [MaxLength(16)] public string Tele { get; set; } } And I Installed Nugut package "MySql.Data.EntityFrameworkCore 8.0.17" and "Microsoft.EntityFrameworkCore.Tools 2.2.6", and enable the migration named "Init" with "Add-Migration Init". I used the "EfDb" like this var optionsBuilder = new DbContextOptionsBuilder<EfDb>(); optionsBuilder.UseMySQL("..."); optionsBuilder.UseLoggerFactory(new LoggerFactory()); var db = new EfDb(optionsBuilder.Options); if(db.Database.GetPendingMigrations().Any()) { db.Database.Migrate(); } Then change the name of Pass Property To Password; And add a migration named "Tele" with "Add-Migration Tele". When it run agin,an exception was thrown like this: System.NotImplementedException:“The method or operation is not implemented.” And when i ran "Script-Migration",it tells me the same thing.