แก้บักด่วน
This commit is contained in:
@@ -27,7 +27,20 @@ namespace TodoAPI2.Models
|
||||
public DateTime? end_leave { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string display_text { get; set; }
|
||||
public string display_text
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!theTime.HasValue || !fiscal_year.HasValue)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
else
|
||||
{
|
||||
return theTime.ToString() + "/" + fiscal_year.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void SetAutoField(DataContext context)
|
||||
|
||||
Reference in New Issue
Block a user