[]
        
(Showing Draft Content)

C1.LiveLinq.LiveViews.View.SetTransaction

SetTransaction Method

SetTransaction(ITransaction, bool)

Sets the value of the Transaction property.

Declaration
public void SetTransaction(ITransaction transaction, bool allowPropertyPaths = false)
Parameters
Type Name Description
ITransaction transaction

The new value for the the Transaction property.

bool allowPropertyPaths

Set this parameter to True to prevent exception if you have writable property paths and want to ignore them (but be aware that updates through property paths are not tracked by the transaction). The default is False.

Remarks

If a writable property path exists in the view element type (for example,

Order.Customer.City
), then an exception is thrown unless suppressed by setting allowPropertyPaths to True, because modifying properties using such paths cannot be supported by transactions. To prevent the exception, set the allowPropertyPaths parameter to True, but make sure you do not use such property paths in your code and don't have a two-way data binding to such property path in your controls. If you modify a property using such path in your code or through data binding, that modification happens outside the transaction scope.