Add Exception middleware
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Diary.Component.Entries.Repository
|
||||
{
|
||||
@@ -15,15 +10,14 @@ namespace Diary.Component.Entries.Repository
|
||||
public int EnrtyID { get; set; }
|
||||
|
||||
[Required]
|
||||
[Column(TypeName="date")]
|
||||
[Column(TypeName = "date")]
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTime ValidFrom { get; set; }
|
||||
public DateTime ValidFrom { get; set; } = DateTime.Now;
|
||||
|
||||
public DateTime? ValidTo { get; set; }
|
||||
|
||||
public string Note { get; set; }
|
||||
|
||||
|
||||
public string Note { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user