Entity framework core ASP.NET核心MVC项目:主键和外键数据的一对一关系问题

Entity framework core ASP.NET核心MVC项目:主键和外键数据的一对一关系问题,entity-framework-core,asp.net-core-mvc,foreign-keys,primary-key,data-annotations,Entity Framework Core,Asp.net Core Mvc,Foreign Keys,Primary Key,Data Annotations,我在链接我的项目的两个模型时遇到了一个问题,这样子公司就有了唯一的凭证,然后我得到了一个错误 请帮帮我 Hi@bernardo,请共享英文错误消息。并尝试删除原始数据库,然后再次运行该命令。@Rena Muchas gracias,voy a intentar tu solución y apenas termine te aviso si me function,por otra parte con con con con comparitir el mensaje de error en i

我在链接我的项目的两个模型时遇到了一个问题,这样子公司就有了唯一的凭证,然后我得到了一个错误

请帮帮我


Hi@bernardo,请共享英文错误消息。并尝试删除原始数据库,然后再次运行该命令。@Rena Muchas gracias,voy a intentar tu solución y apenas termine te aviso si me function,por otra parte con con con con comparitir el mensaje de error en ingles a que te referenceís,ah comparitíel la migraciónHi@bernardo,请说英语。