예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }