Click or drag to resize

BcfDataSet Class

[This is preliminary documentation and is subject to change.]

The cool transactional object model.
Inheritance Hierarchy
SystemObject
  CalculationWorks.BusinessModelBcfDataSet

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta7
Syntax
public class BcfDataSet : IDisposable

The BcfDataSet type exposes the following members.

Constructors
  NameDescription
Public methodBcfDataSet
Initializes a new instance of the BcfDataSet class.
Top
Properties
  NameDescription
Public propertyAcceptedDataStateId
Public propertyCalculating
Gets a value indicating whether this BcfDataSet is currently calculating.
Public propertyCurrentCalculationPlan
Get the current calculation plan.
Public propertyCurrentDataStateId
Gets an identifier representing the current data state.
Public propertyCurrentTransaction
Gets the current BcfTransaction.
Public propertyFaults
Gets the collection of BcfFault objects.
Public propertyHandleCalculationException
Allows to control exception-handling in calculation. Default is null.
Public propertyHasChanges
Gets a value indicating whether data was updated since last call of AcceptChanges.
Public propertyIsDisposed
Gets a value indicating whether this instance is disposed.
Public propertyIsUndoEnabled
Gets a value indicating whether undo (collecting data for Undo(Int32) and Redo(Int32)) is enabled.
Public propertyLocked
Gets a value indicating whether this BcfDataSet is currently locked.
Public propertyManageStateId
Gets or sets a value indicating the dataset manages CurrentDataStateId. Default is true.
Public propertyName
Gets the name of the dataset.
Public propertyParallelOptions
Gets calculation options.
Public propertyRelations
Get the collection of relations that link tables and allow parameter access from parent tables to child tables and vice versa.
Public propertyReleasingDataChanged
Gets a value indicating whether invocation of DataChanged is in process.
Public propertyTables
Gets the collection of tables contained in the dataset.
Public propertyTransactionFactory
Gets the transaction factory.
Public propertyUndoRepository
Gets the undo repository.
Public propertyUndoSerializationService
Infrastructure. The member supports the infrastructure and is not intended to be used directly from your code.
Top
Methods
  NameDescription
Public methodAcceptChanges
Sets the AcceptedDataStateId to CurrentDataStateId this causes HasChanges to return false.
Public methodBeginTransaction(BcfTransactionBuilder)
Creates a BcfTransaction and sets it as the CurrentTransaction. If CurrentTransaction is not null when calling BeginTransaction(BcfTransactionBuilder) a subtransaction of CurrentTransaction will be created.
Public methodBeginTransaction(String, NullableBoolean)
Creates a transaction and sets it as the CurrentTransaction. If CurrentTransaction is not null before calling BeginTransaction a subtransaction of the CurrentTransaction will be created.
Public methodCanRedo
Determines whether Redo(Int32) can be executed.
Public methodCanUndo
Determines whether Undo(Int32) can be executed.
Public methodCreateTempDataSet
Creates an empty dataset with a compatible schema but without functions and rules.
Public methodDiff
Evalueates the difference between this an specified otherDataSet.
Public methodDisableUndo
Disables undo (collecting data for Undo(Int32) and Redo(Int32)) and clears the UndoRepository.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Public methodEnableFileUndo
Enables collecting data-changes (collecting data for Undo(Int32) and Redo(Int32)) in streams.
Public methodEnableFileUndoSession
Enables collecting data-changes (collecting data for Undo(Int32) and Redo(Int32)) in streams including initial data state.
Public methodEnableMemoryUndo
Enables collecting data-changes (collecting data for Undo(Int32) and Redo(Int32)) in memory.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad(BcfDataSet, FuncBcfColumn, Boolean, BcfRowMergeOption, Boolean, BcfRowComparisonMode)
Loads rows of specified dataSet and returns the row-map.
Public methodLoad(IEnumerableBcfRow, FuncBcfColumn, Boolean, BcfRowMergeOption, Boolean, BcfRowComparisonMode)
Loads rows of specified distinctSourceRows and returns the row-map.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnBeginCompute
Called when calculations begins after the calculation-plan is initialized (see CurrentCalculationPlan).
Protected methodOnBeginRedo
Called when Redo(Int32) begins.
Protected methodOnBeginUndo
Called when Undo(Int32) begins.
Protected methodOnDataChanged
Raises the DataChanged-event.
Protected methodOnDisposed
Raises the Disposed event.
Public methodOnEndCompute
Called when calculations ends just before the calculation-plan is cleared (see CurrentCalculationPlan).
Protected methodOnEndRedo
Called when Redo(Int32) ends.
Protected methodOnEndUndo
Called when Undo(Int32) ends.
Public methodRedo
Redoes the last transactionCount undone transactions and returns the effective number of redone transactions.
Public methodReset
Deletes all rows of all tables non transactional, clears UndoRepository and resets the row-id generators and column sequences.
Public methodRestoreUndoRepository
Restores a file-based undo repository and initial dataset state (data when called EnableFileUndoSession(Stream, Stream, Byte)), enables undo and returns the last known transaction index.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUndo
Undoes the last transactionCount transactions and returns the effective number of undone transactions.
Top
Events
  NameDescription
Public eventDataChanged
Raised when main-transaction with data changes is committed and in Reset.
Public eventDisposed
Occurs when disposed.
Top
See Also