Black November

ATÉ 50% OFF

TÁ ACABANDO!

0 dias

0 horas

0 min

0 seg

2
respostas

Erro no add-migration

Unable to create a 'DbContext' of type ''. The exception 'The entity type 'IdentityUserLogin' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728

Codigo 
https://github.com/MuriloRicardoPrincipe/ScreenSound-BaseIdentif

Matricule-se agora e aproveite até 50% OFF

O maior desconto do ano para você evoluir com a maior escola de tecnologia

QUERO APROVEITAR
2 respostas

ainda tá com erro amigo?

edita o teu github que tá dando erro, vê se não tá privado

Dentro do seu OnModelCreating no seu ScreensoundContext, coloque: base.OnModelCreating(modelBuilder);