I need to be able to understand how the occurance rule works in the db as I need to be able to extract them to be able to create shift patterns.
01.
//Creating a Weekly Recurrence rule
02.
int
interval = 2;
03.
RecurrenceRange range =
new
RecurrenceRange();
04.
05.
range.Start = Convert.ToDateTime(rdStartShift.SelectedDate);
06.
range.EventDuration = TimeSpan.FromMinutes(30);
07.
range.MaxOccurrences = 3;
08.
RecurrenceDay recurrenceDay = RecurrenceDay.Wednesday;
09.
// _shifts.RecurrenceRule = new WeeklyRecurrenceRule(interval, recurrenceDay, range).ToString();
10.
DayOfWeek startDayOfWeek = DayOfWeek.Tuesday;
11.
_shifts.RecurrenceRule =
new
WeeklyRecurrenceRule(interval, recurrenceDay, range, startDayOfWeek).ToString();