From cb5a6afde08b6fcc4e2a689bb1b98ddb11ca3a99 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 23 Oct 2024 10:26:50 +0200 Subject: [PATCH] =?UTF-8?q?feat(ProfileObjState):=20State=20Entit=C3=A4t?= =?UTF-8?q?=20mit=20StateId-foreign-key=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WorkFlow.Domain/Entities/ProfileObjState.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WorkFlow.Domain/Entities/ProfileObjState.cs b/WorkFlow.Domain/Entities/ProfileObjState.cs index 09f2427..b5cfb16 100644 --- a/WorkFlow.Domain/Entities/ProfileObjState.cs +++ b/WorkFlow.Domain/Entities/ProfileObjState.cs @@ -44,6 +44,9 @@ namespace WorkFlow.Domain.Entities public required DateTime AddedWhen { get; init; } [ForeignKey("MwfProfileId")] - public Profile? Profile { get; init; } + public Profile? Profile { get; init; } = null; + + [ForeignKey("StateId")] + public WfState? State { get; init; } = null; } } \ No newline at end of file