Importar una vista sql server a el modelo en mvc C#
Publicado por Eliecer Mesias (1 intervención) el 19/01/2017 22:24:13
Saludos.
Estoy intentando importar una vista de sql server a visual studio 2015, mediante el entity framework, pero presena el error 6013
Severity Code Description Project File Line Suppression State
Warning Error 6013: The table/view 'Enturnador.dbo.VIS003' does not have a primary key defined and no valid primary key could be inferred. This table/view has been excluded. To use the entity, you will need to review your schema, add the correct keys, and uncomment it. TurnoMat
Es decir pide que la vista tenga una llave primaria, para importarla en el modelo.
Gracias por su ayuda
Estoy intentando importar una vista de sql server a visual studio 2015, mediante el entity framework, pero presena el error 6013
Severity Code Description Project File Line Suppression State
Warning Error 6013: The table/view 'Enturnador.dbo.VIS003' does not have a primary key defined and no valid primary key could be inferred. This table/view has been excluded. To use the entity, you will need to review your schema, add the correct keys, and uncomment it. TurnoMat
Es decir pide que la vista tenga una llave primaria, para importarla en el modelo.
Gracias por su ayuda
Valora esta pregunta
0