BcfDataSetEnableFileUndo Method |
[This is preliminary documentation and is subject to change.]
Namespace: CalculationWorks.BusinessModel
Exception | Condition |
---|---|
ArgumentNullException | indexFile or dataFile is null. |
ArgumentException | indexFile or dataFile are not navigable. |
ObjectDisposedException | This BcfDataSet is disposed. |
InvalidOperationException | BcfDataSet is Locked. orUndoSerializationService is null orCurrentTransaction is not null 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=false to handle non-serializable data types.
Note |
---|
Because several limitations targeting .net native; many scenarios using types other than primitives like int, string etc. may cause serialization issues (MSDN). |