[NotMapped]
This commit is contained in:
@@ -15,10 +15,13 @@ namespace Musify.Domain.Entities
|
|||||||
[Required]
|
[Required]
|
||||||
public JobState JobState { get; set; } = JobState.Pending;
|
public JobState JobState { get; set; } = JobState.Pending;
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
public bool IsCompleted => JobState == JobState.Completed;
|
public bool IsCompleted => JobState == JobState.Completed;
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
public bool IsFailed => JobState == JobState.Failed;
|
public bool IsFailed => JobState == JobState.Failed;
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
public bool IsPending => JobState == JobState.Pending;
|
public bool IsPending => JobState == JobState.Pending;
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
|
|||||||
Reference in New Issue
Block a user