vgquotes/Src/VideoGameQuotes.Api/Category.cs

15 lines
368 B
C#
Raw Normal View History

2011-02-12 23:54:52 +00:00
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; }
}
}