Generic Controller Test

This commit is contained in:
2018-10-12 20:52:59 +02:00
parent 39075051b2
commit e47c1ccb5e
12 changed files with 102 additions and 58 deletions

View File

@@ -0,0 +1,10 @@
using System.ComponentModel.DataAnnotations;
namespace LaDOSE.Entity.Context
{
public class Entity
{
[Key]
public int Id { get; set; }
}
}

View File

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

View File

@@ -1,6 +1,6 @@
namespace LaDOSE.Entity
{
public class EventGame
public class EventGame
{
public int EventId { get; set; }

View File

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

View File

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