/// <summary> /// Deprecated Method for adding a new object to the Snowboards EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSnowboards(Snowboard snowboard) { base.AddObject("Snowboards", snowboard); }
/// <summary> /// Create a new Snowboard object. /// </summary> /// <param name="snowboardId">Initial value of the SnowboardId property.</param> /// <param name="snowboardName">Initial value of the SnowboardName property.</param> public static Snowboard CreateSnowboard(global::System.Int32 snowboardId, global::System.String snowboardName) { Snowboard snowboard = new Snowboard(); snowboard.SnowboardId = snowboardId; snowboard.SnowboardName = snowboardName; return snowboard; }