forked from ovation22/GenericRepositoryDIwithNETCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHorse.cs
More file actions
46 lines (30 loc) · 1.02 KB
/
Horse.cs
File metadata and controls
46 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Example.Models
{
public class Horse
{
public Horse()
{
SireOffspring = new HashSet<Horse>();
DamOffspring = new HashSet<Horse>();
}
public int Id { get; set; }
[Required]
[StringLength(50)]
public string Name { get; set; }
public byte ColorId { get; set; }
public int? SireId { get; set; }
public int? DamId { get; set; }
public int RaceStarts { get; set; }
public int RaceWins { get; set; }
public int RacePlace { get; set; }
public int RaceShow { get; set; }
public int Earnings { get; set; }
public virtual Color Color { get; set; }
public virtual ICollection<Horse> SireOffspring { get; set; }
public virtual Horse Sire { get; set; }
public virtual ICollection<Horse> DamOffspring { get; set; }
public virtual Horse Dam { get; set; }
}
}