Hi,
I have been trying to use the DaysOfWeekMask property of RecurrencePattern.
I have to map the values from the database to the DaysOfWeekMask property.
suppose if i have selected Pattern frequency as Weekly
> it occurs ever 'Monday and Friday', then i am saving the value in database as 'Monday | Friday'
> it occurs ever 'Monday, Thursday, Friday', then i am saving the value in database as 'Monday | Thursday | Friday'
and many more such cases
but how can i map these values to DaysOfWeekMask,as DaysOfWeekMask accepts only values of type
I have been trying to use the DaysOfWeekMask property of RecurrencePattern.
I have to map the values from the database to the DaysOfWeekMask property.
suppose if i have selected Pattern frequency as Weekly
> it occurs ever 'Monday and Friday', then i am saving the value in database as 'Monday | Friday'
> it occurs ever 'Monday, Thursday, Friday', then i am saving the value in database as 'Monday | Thursday | Friday'
and many more such cases
but how can i map these values to DaysOfWeekMask,as DaysOfWeekMask accepts only values of type
RecurrenceDay and not the string or int
.
I know that we can assign multiple days using pipeline operator, but it is not feasible to write all the conditions in that case. So, please suggest some efficient and easy way to assign some string or integer based value to DaysOfWeekMask property.
Please revert asap.
Regards