From a62b890b56fa03383790c3891511314b9befcc4c Mon Sep 17 00:00:00 2001 From: Magnus Gule Date: Thu, 28 Sep 2023 13:47:55 +0200 Subject: [PATCH] Removing Id as required since this will be generated by db on Create. --- backend/Core/DomainModels/Consultant.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/Core/DomainModels/Consultant.cs b/backend/Core/DomainModels/Consultant.cs index b8044789..630cecc6 100644 --- a/backend/Core/DomainModels/Consultant.cs +++ b/backend/Core/DomainModels/Consultant.cs @@ -6,7 +6,7 @@ namespace Core.DomainModels; public class Consultant { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public required int Id { get; set; } + public int Id { get; set; } public required string Name { get; set; } public required string Email { get; set; }