Generic Controller Test
This commit is contained in:
10
LaDOSE.Src/LaDOSE.Entity/Context/Entity.cs
Normal file
10
LaDOSE.Src/LaDOSE.Entity/Context/Entity.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LaDOSE.Entity.Context
|
||||
{
|
||||
public class Entity
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -4,10 +4,10 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LaDOSE.Entity
|
||||
{
|
||||
public class Event
|
||||
public class Event : Context.Entity
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
//[Key]
|
||||
//public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
public int SeasonId { get; set; }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace LaDOSE.Entity
|
||||
{
|
||||
public class EventGame
|
||||
public class EventGame
|
||||
{
|
||||
|
||||
public int EventId { get; set; }
|
||||
|
||||
@@ -4,10 +4,8 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LaDOSE.Entity
|
||||
{
|
||||
public class Game
|
||||
public class Game : Context.Entity
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string ImgUrl { get; set; }
|
||||
|
||||
|
||||
@@ -4,10 +4,9 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace LaDOSE.Entity
|
||||
{
|
||||
public class Season
|
||||
public class Season : Context.Entity
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public DateTime StartDate { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user