Exemplo n.º 1
0
 public TrainingExerciseKey(TrainingExerciseKey key)
 {
     UserId        = key.UserId;
     Year          = key.Year;
     WeekOfYear    = key.WeekOfYear;
     DayOfWeek     = key.DayOfWeek;
     TrainingDayId = key.TrainingDayId;
     Id            = key.Id;
 }
Exemplo n.º 2
0
        public TrainingExerciseKey Clone()
        {
            var copy = new TrainingExerciseKey();

            copy.UserId        = UserId;
            copy.Year          = Year;
            copy.WeekOfYear    = WeekOfYear;
            copy.DayOfWeek     = DayOfWeek;
            copy.TrainingDayId = TrainingDayId;
            copy.Id            = Id;
            return(copy);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Equals by key
 /// </summary>
 /// <returns></returns>
 public static bool IsEqualByKey(TrainingExerciseKey key1, TrainingExerciseKey key2)
 {
     return(key1.UserId == key2.UserId && key1.Year == key2.Year && key1.WeekOfYear == key2.WeekOfYear &&
            key1.DayOfWeek == key2.DayOfWeek && key1.TrainingDayId == key2.TrainingDayId && key1.Id == key2.Id);
 }
Exemplo n.º 4
0
 public TrainingExercise(TrainingExerciseKey key) : base(key)
 {
 }