Unable to retrieve metadata One or more validation errors were detected during model generation:
18/02/2016
0
Boa noite gente,
Estou aqui desenvolvendo em asp.net e no entanto estou com um erro quando vou gerar uma view que exibe a mensagem
There was an error running the selected code generator:
'Unable to retrieve metadata for 'WebApplication1.comercioexterior'. One or more validation errors were detected during model generation:
model1: : EntityType 'comercioexterior' has no key defined. Define the key for this EntityType.
models: EntityType: EntitySet 'comercioexteriors' is based on type 'comercioexterior' that has no keys defined.
Estou mais perdido que cego em tiroteio alguém tem alguma ideia do que deve ser ?
Estou aqui desenvolvendo em asp.net e no entanto estou com um erro quando vou gerar uma view que exibe a mensagem
There was an error running the selected code generator:
'Unable to retrieve metadata for 'WebApplication1.comercioexterior'. One or more validation errors were detected during model generation:
model1: : EntityType 'comercioexterior' has no key defined. Define the key for this EntityType.
models: EntityType: EntitySet 'comercioexteriors' is based on type 'comercioexterior' that has no keys defined.
Estou mais perdido que cego em tiroteio alguém tem alguma ideia do que deve ser ?
Fabio Alves
Curtir tópico
+ 1
Responder
Posts
18/02/2016
Jothaz
EntityType 'comercioexterior' has no key defined.
Fica quase impossível ajudar ser ter acesso aos códigos.
Mas pela mensagem esta faltando definir um chave (Key/Id) em alguma classe da model (comercioexterior).
Responder
Clique aqui para fazer login e interagir na Comunidade :)