30 lines
586 B
C#
30 lines
586 B
C#
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.Entry.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; }
|
|
|
|
|
|
}
|
|
}
|