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.
25 lines
694 B
25 lines
694 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LibEntityFramework
|
|
{
|
|
public class ChampionEntity
|
|
{
|
|
//j'ai retiré l'Id, je me suis dit que ça ferait plus de sens de ne pas toucher au model, car ce code n'est pas le mien.
|
|
[Key]
|
|
public string Name { get; set; }
|
|
public string Bio { get; set; }
|
|
public string Icon { get; set; }
|
|
public ChampionEntity(string name, string bio, string icon)
|
|
{
|
|
Name = name;
|
|
Bio = bio;
|
|
Icon = icon;
|
|
}
|
|
}
|
|
}
|