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/Sources/EntityFrameworkLOL/Entities/CharacteristicEntity.cs

23 lines
550 B

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EntityFrameworkLOL.Entities;
namespace EntityFrameworkLOL.Entities
{
public class CharacteristicEntity
{
[Key]
public string Name { get; set; }
[Required]
public int Value { get; set; }
[ForeignKey("ChampionEntity")]
public ChampionEntity Champion { get; set; }
}
}