/// <summary> /// Deprecated Method for adding a new object to the Difficulties EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDifficulties(Difficulty difficulty) { base.AddObject("Difficulties", difficulty); }
/// <summary> /// Create a new Difficulty object. /// </summary> /// <param name="difficultyID">Initial value of the DifficultyID property.</param> /// <param name="name">Initial value of the Name property.</param> public static Difficulty CreateDifficulty(global::System.Int32 difficultyID, global::System.String name) { Difficulty difficulty = new Difficulty(); difficulty.DifficultyID = difficultyID; difficulty.Name = name; return difficulty; }