コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Schedules EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSchedules(Schedule schedule)
 {
     base.AddObject("Schedules", schedule);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Schedule object.
 /// </summary>
 /// <param name="gymId">Initial value of the GymId property.</param>
 /// <param name="day">Initial value of the Day property.</param>
 /// <param name="starts">Initial value of the Starts property.</param>
 /// <param name="ends">Initial value of the Ends property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="id">Initial value of the Id property.</param>
 public static Schedule CreateSchedule(global::System.Int32 gymId, global::System.Int16 day, global::System.TimeSpan starts, global::System.TimeSpan ends, global::System.Boolean isActive, global::System.Decimal price, global::System.Int32 id)
 {
     Schedule schedule = new Schedule();
     schedule.GymId = gymId;
     schedule.Day = day;
     schedule.Starts = starts;
     schedule.Ends = ends;
     schedule.IsActive = isActive;
     schedule.Price = price;
     schedule.Id = id;
     return schedule;
 }