Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DelegatingTransactionAttributeWithName.ReadOnly Property

Get whether to optimize as read-only transaction.

[Visual Basic]
Public NotOverridable ReadOnly Property ReadOnly() As Boolean _
    Implements ITransactionDefinition.ReadOnly

   Public Get
   End Get
End Property
public bool ReadOnly { public get; }

Property Value




This just serves as hint for the actual transaction subsystem, it will not necessarily cause failure of write accesses.

Only makes sense in combination with Required and RequiresNew.

A transaction manager that cannot interpret the read-only hint will not throw an exception when given ReadOnly=true.

See Also

DelegatingTransactionAttributeWithName Class | Spring.Transaction.Interceptor Namespace