public static Course ToCourse(this CompetitorEntity entity) { Course course = new Course(); course.Date = entity.Date; course.CourseId = Convert.ToInt32(entity.RowKey); course.SC = entity.SC; course.Label = entity.Course; return(course); }
public static CompetitorEntity ToCompetitorEntity(this Concurrent concurrent) { CompetitorEntity competitorEntity = new CompetitorEntity(); competitorEntity.Victoires = concurrent.Victoires; competitorEntity.SC = concurrent.SC; competitorEntity.Nom = concurrent.Nom; competitorEntity.Entraineur = concurrent.Entraineur.Nom; competitorEntity.Defaites = concurrent.Defaites; return(competitorEntity); }
public static Concurrent ToConcurrent(this CompetitorEntity entity) { Concurrent concurrent = new Concurrent(); concurrent.Nom = entity.Nom; concurrent.ConcurrentId = Convert.ToInt32(entity.PartitionKey); concurrent.Defaites = entity.Defaites; concurrent.Entraineur = new Entraineur() { Nom = entity.Entraineur }; concurrent.SC = entity.SC; concurrent.Victoires = entity.Victoires; return(concurrent); }