Implement EnemiesService.cs

This commit is contained in:
2020-03-07 11:29:00 +01:00
parent 9d53da530a
commit b9e7ae45f6
6 changed files with 103 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace EstusShots.Server.Models
@@ -13,8 +14,6 @@ namespace EstusShots.Server.Models
public bool Defeated { get; set; }
public Guid? SeasonId { get; set; }
public Season? Season { get; set; }
public ICollection<SeasonEnemies> SeasonEnemies { get; set; } = default!;
}
}

View File

@@ -20,6 +20,6 @@ namespace EstusShots.Server.Models
public List<Episode> Episodes { get; set; } = default!;
public List<Enemy> Enemies { get; set; } = default!;
public ICollection<SeasonEnemies> SeasonEnemies { get; set; } = default!;
}
}

View File

@@ -0,0 +1,13 @@
using System;
namespace EstusShots.Server.Models
{
public class SeasonEnemies
{
public Guid SeasonId { get; set; } = default!;
public Season Season { get; set; } = default!;
public Guid EnemyId { get; set; } = default!;
public Enemy Enemy { get; set; } = default!;
}
}