From 10590639f4e7276b2c7c956e1140497e8409072e Mon Sep 17 00:00:00 2001 From: "bastien.ollier@etu.uca.fr" Date: Sat, 11 Mar 2023 11:36:00 +0100 Subject: [PATCH] oups --- Sources/EFLol/MyDbContext.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/EFLol/MyDbContext.cs b/Sources/EFLol/MyDbContext.cs index a339870..55f4036 100644 --- a/Sources/EFLol/MyDbContext.cs +++ b/Sources/EFLol/MyDbContext.cs @@ -37,7 +37,6 @@ namespace EFLol modelBuilder.Entity().Property(s => s.Id).ValueGeneratedOnAdd(); - modelBuilder.Entity().HasKey(sc => new { sc.StudentId, sc.CourseId }); modelBuilder.Entity().Property(s => s.Id).ValueGeneratedOnAdd(); } }