ComponentOne Data Source for Entity Framework
C1.LiveLinq.LiveViews Namespace / View Class / SetTransaction Method
The new value for the the Transaction property.
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.

In This Topic
    SetTransaction Method
    In This Topic
    Sets the value of the Transaction property.
    Syntax
    'Declaration
     
    
    Public Sub SetTransaction( _
       ByVal transaction As ITransaction, _
       Optional ByVal allowPropertyPaths As System.Boolean _
    ) 
    public void SetTransaction( 
       ITransaction transaction,
       System.bool allowPropertyPaths
    )

    Parameters

    transaction
    The new value for the the Transaction property.
    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.
    See Also