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.
15 lines
346 B
15 lines
346 B
using System;
|
|
using EntityFrameWorkLib;
|
|
using Model;
|
|
namespace DbDataManager.Mapper
|
|
{
|
|
public static class PlayerMapper
|
|
{
|
|
public static Player ToPoco(this PlayerEntity player)
|
|
{
|
|
return new Player(player.Pseudo, new Stats { player.NbWin, player.NbPlayed, player.MaxChain, player.MaxZone, player.MaxPoints }, player.PlayerId);
|
|
}
|
|
}
|
|
}
|
|
|