Bonsoir,
J'ai défini une vue dans ma BD.
Lorsque je met à jour le modèle EntityFrameWork, j'ai le message suivant:
Severity Code Description Project File Line Suppression State
Warning Error 6002: The table/view 'GP79dbBassin.dbo.VFabricants' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. DBEFTest C:\DevTest2017\DBEFTest\DBEFTest\DBserviceBassin.edmx 1
Comment faire pour ajouter une clef primaire dans la vue?
Voici la vue
CREATE VIEW [dbo].[VFabricants]
AS SELECT * FROM [FABRICANT]
Voici la table
CREATE TABLE [dbo].[FABRICANT] (
[IDFABRICANT] INT IDENTITY (0, 1) NOT NULL,
[CODE] NCHAR (20) NOT NULL,
[DESIGNATION] NCHAR (200) NOT NULL,
PRIMARY KEY CLUSTERED ([IDFABRICANT] ASC)
);
Gérard