vgquotes/Src/VideoGameQuotes.Api/Category.cs
2011-02-12 23:54:52 +00:00

15 lines
368 B
C#

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; }
}
}