Version

SuppressOccurrenceConversion Property

Disables conversion of Occurrences into their recurring roots.
Syntax
'Declaration
 
Protected Overridable ReadOnly Property SuppressOccurrenceConversion As Boolean
protected virtual bool SuppressOccurrenceConversion {get;}

Property Value

False when Occurrences (where detected) should be converted into their Recurrence root activity before a database operation sensitive to this distinction takes place, otherwise True to suppress this behavior.
Remarks

Some WebSchedule data provider operations, such as the UpdateActivity(Activity) method, update an Activity in the data source using the timestamp to protect against concurrency violations. Occurrences generally do not have a timestamp, and are not represented individually in the standard WebSchedule data model as rows within the Activity table (unless they are variances). The important takeaway from this is that Occurrences are instances of an Activity created at run-time and not from the data source. An update operation will fail if it is performed on an occurrence.

Normally, the WebSchedule data provider will convert an occurrence (if one has been detected) into it's recurrence root Activity, which has a data source-generated timestamp and DataKey property. Therefore, the default value of this property is False.

Inheritors implementing a custom data provider which treats occurrences differently from the standard data model may need to override this property to return True, if they want to suppress these conversions from taking place automatically by those data provider methods affected.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also