/// <summary> /// Create a new GolfHole object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="hole">Initial value of the Hole property.</param> public static GolfHole CreateGolfHole(global::System.Guid id, global::System.String hole) { GolfHole golfHole = new GolfHole(); golfHole.ID = id; golfHole.Hole = hole; return golfHole; }
/// <summary> /// Deprecated Method for adding a new object to the GolfHoles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToGolfHoles(GolfHole golfHole) { base.AddObject("GolfHoles", golfHole); }
public EventGolfModel(EventGolf golf) { EventGolf = golf; EventBookedProducts = new ObservableCollection<EventBookedProductModel>(); _golfHole = EventGolf.GolfHole; _golf = EventGolf.Golf; }