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
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);