/// <summary> /// Deprecated Method for adding a new object to the Treasures EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTreasures(Treasure treasure) { base.AddObject("Treasures", treasure); }
/// <summary> /// Create a new Treasure object. /// </summary> /// <param name="treasureId">Initial value of the TreasureId property.</param> /// <param name="treasureName">Initial value of the TreasureName property.</param> /// <param name="treasureEventEventId">Initial value of the TreasureEventEventId property.</param> public static Treasure CreateTreasure(global::System.Int32 treasureId, global::System.String treasureName, global::System.Int32 treasureEventEventId) { Treasure treasure = new Treasure(); treasure.TreasureId = treasureId; treasure.TreasureName = treasureName; treasure.TreasureEventEventId = treasureEventEventId; return treasure; }