Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the GolfHoles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToGolfHoles(GolfHole golfHole)
 {
     base.AddObject("GolfHoles", golfHole);
 }
Beispiel #3
0
        public EventGolfModel(EventGolf golf)
        {
            EventGolf = golf;
            EventBookedProducts = new ObservableCollection<EventBookedProductModel>();

            _golfHole = EventGolf.GolfHole;
            _golf = EventGolf.Golf;

        }