/// <summary> /// Deprecated Method for adding a new object to the ExerciseFavorites EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToExerciseFavorites(ExerciseFavorite exerciseFavorite) { base.AddObject("ExerciseFavorites", exerciseFavorite); }
/// <summary> /// Create a new ExerciseFavorite object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="type">Initial value of the Type property.</param> /// <param name="description">Initial value of the Description property.</param> public static ExerciseFavorite CreateExerciseFavorite(global::System.Int32 id, global::System.Guid userId, global::System.Int32 type, global::System.String description) { ExerciseFavorite exerciseFavorite = new ExerciseFavorite(); exerciseFavorite.Id = id; exerciseFavorite.UserId = userId; exerciseFavorite.Type = type; exerciseFavorite.Description = description; return exerciseFavorite; }