added Category.cs
This commit is contained in:
parent
215d3440b3
commit
fa9ed8d390
15
Src/VideoGameQuotes.Api/Category.cs
Normal file
15
Src/VideoGameQuotes.Api/Category.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user