使用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

相关文章:

  • 2021-11-30
  • 2021-10-22
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2022-12-23
  • 2021-10-09
  • 2022-02-21
  • 2021-11-13
  • 2021-03-31
  • 2021-07-19
相关资源
相似解决方案