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.
EfCore_LoL_S4/Sources/DbDatamanager/ChampionChanger.cs

26 lines
414 B

using System;
using EntityFrameWorkLib;
using Model;
namespace DbDatamanager
{
public static class ChampionChanger
{
public static Champion ToPoco(this ChampionEntity champion)
{
return new Champion(champion.Name, champion.Bio);
}
public static ChampionEntity ToEntity(this Champion champion)
{
return new ChampionEntity
{
Name = champion.Name,
Bio= champion.Bio
};
}
}
}