1
resposta

Erro de relacionamento

Boa tarde! Configurei o arquivo ApplicationContext da mesma forma que o professor, porém ao executar Add-Migration Modelo, ocorre o erro de relacionamento abaixo:

The dependent side could not be determined for the one-to-one relationship between 'Pedido.Cadastro' and 'Cadastro.Pedido'. To identify the dependent side of the relationship, configure the foreign key property. If these navigations should not be part of the same relationship, configure them independently via separate method chains in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details.

1 resposta

Olá Pablo, consegue colocar prints do seus models e do ApplicationContext?