diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-02-10 16:19:46 +0100 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-02-10 16:19:46 +0100 |
| commit | 00c3b32e2db200a2f42396ac7f8381704ec97268 (patch) | |
| tree | 089d68dcbda127d4c95ccca9b0c9a18b59dc8bdc /CoreWiki/Models/Article.cs | |
Initial Commit
Diffstat (limited to 'CoreWiki/Models/Article.cs')
| -rw-r--r-- | CoreWiki/Models/Article.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CoreWiki/Models/Article.cs b/CoreWiki/Models/Article.cs new file mode 100644 index 0000000..c461758 --- /dev/null +++ b/CoreWiki/Models/Article.cs @@ -0,0 +1,11 @@ +using System.ComponentModel.DataAnnotations; + +namespace CoreWiki.Models; + +public class Article +{ + [Required, Key] + public string Topic { get; set; } + public DateTime Published { get; set; } = DateTime.UtcNow; + public string Content { get; set; } +}
\ No newline at end of file |
