/// <summary> /// Create a new Timeslot object. /// </summary> /// <param name="timeslot_id">Initial value of the timeslot_id property.</param> /// <param name="start_hr">Initial value of the start_hr property.</param> /// <param name="start_min">Initial value of the start_min property.</param> /// <param name="end_hr">Initial value of the end_hr property.</param> /// <param name="end_min">Initial value of the end_min property.</param> public static Timeslot CreateTimeslot(global::System.Int32 timeslot_id, global::System.Int32 start_hr, global::System.Int32 start_min, global::System.Int32 end_hr, global::System.Int32 end_min) { Timeslot timeslot = new Timeslot(); timeslot.timeslot_id = timeslot_id; timeslot.start_hr = start_hr; timeslot.start_min = start_min; timeslot.end_hr = end_hr; timeslot.end_min = end_min; return timeslot; }
/// <summary> /// Deprecated Method for adding a new object to the Timeslots EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTimeslots(Timeslot timeslot) { base.AddObject("Timeslots", timeslot); }
private bool checkForOverlap(Timeslot ts1, Timeslot ts2) { return (ts1.start_time <= ts2.start_time && ts1.end_time > ts2.start_time) || (ts2.start_time <= ts1.start_time && ts2.end_time > ts1.start_time); }