|
|
@ -2,24 +2,22 @@
|
|
|
|
using Model;
|
|
|
|
using Model;
|
|
|
|
using System.Collections.Immutable;
|
|
|
|
using System.Collections.Immutable;
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
|
|
namespace EFlib
|
|
|
|
namespace EFlib
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class EFChampion
|
|
|
|
public class EFChampion
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// public int Id { get; set; }
|
|
|
|
|
|
|
|
// https://learn.microsoft.com/fr-fr/ef/core/modeling/keyless-entity-types?tabs=data-annotations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**** Only Attributs ****/
|
|
|
|
/**** Only Attributs ****/
|
|
|
|
//[Key]
|
|
|
|
[Key]
|
|
|
|
public string Name { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
//[MaxLength(500)]
|
|
|
|
[MaxLength(500)]
|
|
|
|
public string Bio { get; set; }
|
|
|
|
public string Bio { get; set; }
|
|
|
|
public string Icon { get; set; }
|
|
|
|
public string Icon { get; set; }
|
|
|
|
public ReadOnlyDictionary<string, int> Characteristics { get; private set; }
|
|
|
|
public ReadOnlyDictionary<string, int> Characteristics { get; private set; }
|
|
|
|
public EFChampionClass Class { get; set; }
|
|
|
|
public EFChampionClass Class { get; set; }
|
|
|
|
public ReadOnlyCollection<EFSkin> Skins { get; private set; }
|
|
|
|
public ReadOnlyCollection<EFSkin> Skins { get; private set; }
|
|
|
|
public ImmutableHashSet<Skill> Skills { get; private set; }
|
|
|
|
public ImmutableHashSet<EFSkill> Skills { get; private set; }
|
|
|
|
public LargeImage Image { get; set; }
|
|
|
|
public LargeImage Image { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|