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.

Garanta sua matrícula hoje e ganhe + 2 meses grátis

Continue sua jornada tech com ainda mais tempo para aprender e evoluir

Quero aproveitar agora
1 resposta

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