code smells
continuous-integration/drone/push Build is failing Details

testunitaire
Maxence LANONE 2 years ago
parent de9f83fb79
commit 4d37ba8b82

@ -12,24 +12,24 @@ namespace EntityFrameWorkLib
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int UniqueId { get; set; }
public string Name { get; set; }
public string? Name { get; set; }
//[Required]
[MaxLength(256)]
public string Bio { get; set; }
public string? Bio { get; set; }
public string Icon { get; set; }
public string? Icon { get; set; }
//[Required]
public ChampionClass Class { get; set; }
public Collection<SkinEntity> Skins { get; set; }
public Collection<SkinEntity>? Skins { get; set; }
public LargeImageEntity? LargeImage { get; set; }
public HashSet<SkillEntity> skills = new HashSet<SkillEntity>();
public Collection<RunePageEntity> ListRunePages { get; set; }
public Collection<RunePageEntity>? ListRunePages { get; set; }
}
}

@ -9,13 +9,13 @@ namespace EntityFrameWorkLib
public Guid Id { get; set; }
//[Required]
public string Base64 { get; set; }
public string? Base64 { get; set; }
//[Required]
public int championId { get; set; }
//[Required]
public ChampionEntity champion { get; set; }
public ChampionEntity? champion { get; set; }
}
}

@ -10,16 +10,16 @@ namespace EntityFrameWorkLib
{
[Key]
//[MaxLength(256)]
public string Name { get; set; }
public string? Name { get; set; }
//[Required]
[MaxLength(500)]
public string Description { get; set; }
public string? Description { get; set; }
//[Required]
public RuneFamily RuneFamily { get; set; }
public Collection<RunePageEntity> ListRunePages { get; set; }
public Collection<RunePageEntity>? ListRunePages { get; set; }
}
}

@ -4,7 +4,7 @@ namespace EntityFrameWorkLib
public class RunePageEntity
{
public int Id { get; set; }
public String Name { get; set; }
public String? Name { get; set; }
}
public enum Category

@ -8,16 +8,16 @@ namespace EntityFrameWorkLib
{
[Key]
[MaxLength(256)]
public string Name { get; set; }
public string? Name { get; set; }
//[Required]
[MaxLength(500)]
public string Description { get; set; }
public string? Description { get; set; }
//[Required]
public SkillType SkillType { get; set; }
public HashSet<ChampionEntity> champions { get; set; }
public HashSet<ChampionEntity>? champions { get; set; }
}
}

@ -7,13 +7,13 @@ namespace EntityFrameWorkLib
{
[Key]
[MaxLength(256)]
public string Name { get; set; }
public string? Name { get; set; }
//[Required]
[MaxLength(500)]
public string Description { get; set; }
public string? Description { get; set; }
public string Icon { get; set; }
public string? Icon { get; set; }
//[Required]
public float Price { get; set; }

Loading…
Cancel
Save