added Category.cs

This commit is contained in:
tmont 2011-02-12 23:54:52 +00:00
parent 215d3440b3
commit fa9ed8d390

View File

@ -0,0 +1,15 @@
using System;
using System.ComponentModel.DataAnnotations;
using Portoa.Persistence;
namespace VideoGameQuotes.Api {
public class Category : Entity<Category, int> {
public Category() {
Created = DateTime.UtcNow;
}
public virtual DateTime Created { get; set; }
[Required, StringLength(255)]
public virtual string Name { get; set; }
}
}