From fa9ed8d390c06039e6245519b5c9a1771ab3ed1e Mon Sep 17 00:00:00 2001 From: tmont Date: Sat, 12 Feb 2011 23:54:52 +0000 Subject: [PATCH] added Category.cs --- Src/VideoGameQuotes.Api/Category.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Src/VideoGameQuotes.Api/Category.cs diff --git a/Src/VideoGameQuotes.Api/Category.cs b/Src/VideoGameQuotes.Api/Category.cs new file mode 100644 index 0000000..da58c35 --- /dev/null +++ b/Src/VideoGameQuotes.Api/Category.cs @@ -0,0 +1,15 @@ +using System; +using System.ComponentModel.DataAnnotations; +using Portoa.Persistence; + +namespace VideoGameQuotes.Api { + public class Category : Entity { + public Category() { + Created = DateTime.UtcNow; + } + + public virtual DateTime Created { get; set; } + [Required, StringLength(255)] + public virtual string Name { get; set; } + } +} \ No newline at end of file