You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LolProject/src/EntityFramework_LoL/Sources/MyFlib/Entities/SkillEntity.cs

26 lines
663 B

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace MyFlib
{
public class SkillEntity
{
[Key]
[MaxLength(64, ErrorMessage = "the Skill name must not exceed 64 characters")]
public string Name { get; set; }
[Required]
[MaxLength(500)]
public string Description { get; set; }
[Required]
public SkillTypeEntity Type { get; set; }
[Required]
[ForeignKey("ChampionForeignKey")]
public ChampionEntity Champion { get; set; }
public Guid ChampionForeignKey { get; set; }
}
}