Erro ao criar a view para o produto na Aula 6 (CURSO DE ASPNET MVC - LOJA VIRTUAL)

.NET

C#

05/11/2016

Ao criar a view após configurar o ProdutosRepositorio no controller ProdutosController ocorre o seguinte erro:

Error

These was an error running the selected code generator:
'Unable to retrieve metadata for
'Quiron.LojaVirtual.Dominio.Entidades.Produto'. One or more
validation errors were detected during model generation:

Quiron.LojaVirtual.Dominio.Repositorio.Produto:: EntityType'Produto'
has no key defined. Define the key for this EntityType.
Produtos: EntityType: EntitySet 'Produtos' is based on type 'Produto'
that has no keys defined.

Sendo que na base está definida primarykey...
Poderia me ajudar??
Luis Paiva

Luis Paiva

Curtidas 0
POSTAR