From 7a6819d9233dad71da3d571e2be7f75813d0332f Mon Sep 17 00:00:00 2001 From: XShine555 Date: Fri, 20 Mar 2026 01:37:51 +0100 Subject: [PATCH] [NotMapped] --- Domain/Entities/Job.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Domain/Entities/Job.cs b/Domain/Entities/Job.cs index 4b2f8c9..4560443 100644 --- a/Domain/Entities/Job.cs +++ b/Domain/Entities/Job.cs @@ -15,10 +15,13 @@ namespace Musify.Domain.Entities [Required] public JobState JobState { get; set; } = JobState.Pending; + [NotMapped] public bool IsCompleted => JobState == JobState.Completed; + [NotMapped] public bool IsFailed => JobState == JobState.Failed; + [NotMapped] public bool IsPending => JobState == JobState.Pending; [Required]