Method not found: 'System.Data.Entity.ModelConfiguration.Configuration.XXX

 使用EF flument API  修改映射数据库字段的自增长

modelBuilder.Entity<Invoice>().Property(p => p.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

报错Method not found: 'System.Data.Entity.ModelConfiguration.Configuration.XXX

卸载所有项目中引用的EntityFramework

重新使用Nuget安装EntityFramework

解决此问题。

原文链接 https://www.devexpress.com/Support/Center/Question/Details/T619780/scaffolding-wizard-error-when-using-fluent-api-syntax-hasindex

猜你喜欢

转载自www.cnblogs.com/huhongda/p/9399996.html