BcfDataSetEnableFileUndo Method |
Namespace: CalculationWorks.BusinessModel
| Exception | Condition |
|---|---|
| ArgumentNullException | indexFile or dataFile is . |
| ArgumentException | indexFile or dataFile are not navigable. |
| ObjectDisposedException | This BcfDataSet is disposed. |
| InvalidOperationException | BcfDataSet is Locked. or orCurrentTransaction is not orUndo is already enabled. |
This method enables collecting data-changes by serializing historic BcfRow and Value objects.
Serialization causes a noticeable performance impact but scales much better than in memory undo.
While in-memory undo can handle non-serializable data types; you have to use BcfSurrogateConverterT, TSurrogate or set IncludeInUndo= to handle non-serializable data types.
| Because several limitations targeting .net native; many scenarios using types other than primitives like int, string etc. may cause serialization issues (MSDN). |