Added Enum for priority

This commit is contained in:
2020-06-05 15:27:41 +02:00
parent 30291cc6ef
commit 2393177b2e
2 changed files with 19 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Runtime.Serialization;
namespace ScrumTaskboard
{
public class TaskContext : DbContext
@@ -34,6 +35,7 @@ namespace ScrumTaskboard
public int sprint { get; set; }
public int project { get; set; }
public int userstory { get; set; }
public ScrumPrio priority { get; set; }
}
public class ScrumUserstory
@@ -86,4 +88,14 @@ namespace ScrumTaskboard
public int id { get; set; }
public string name { get; set; }
}
public enum ScrumPrio
{
[EnumMember(Value = "low")]
low,
[EnumMember(Value = "medium")]
medium,
[EnumMember(Value = "high")]
high
}
}