Added Entry initial repo and services for a create action.

This commit is contained in:
2022-06-22 22:56:59 +01:00
parent e83cac2838
commit cbd5d7de4f
8 changed files with 120 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Diary.Component.Entries.Repository
{
[Table("Entries", Schema = "Diary")]
public class Entry
{
[Key]
public int EnrtyID { get; set; }
[Required]
[Column(TypeName="date")]
public DateTime Date { get; set; }
[Required]
public DateTime ValidFrom { get; set; }
public DateTime? ValidTo { get; set; }
public string Note { get; set; }
}
}