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.
31 lines
789 B
31 lines
789 B
using Entity_Framework.Entity;
|
|
using Modele.Classe;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Entity_Framework.Factories
|
|
{
|
|
public static class PiloteFactories
|
|
{
|
|
|
|
public static Pilotes ModeleToEntity(this Pilote piloteModele)
|
|
{
|
|
Pilotes pilote = new Pilotes();
|
|
|
|
pilote.Pseudo = piloteModele.Pseudo;
|
|
pilote.Email = piloteModele.Email;
|
|
pilote.Password = piloteModele.Password;
|
|
|
|
return pilote;
|
|
}
|
|
|
|
public static Pilote EntityToModele(this Pilotes piloteEntity)
|
|
{
|
|
return new Pilote(_Pseudo:piloteEntity.Pseudo,_Email:piloteEntity.Email,_Password:piloteEntity.Password);
|
|
}
|
|
}
|
|
}
|