Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DefaultTransactionDefinition.ReadOnly Property

Get whether to optimize as read-only transaction.

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

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




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

DefaultTransactionDefinition Class | Spring.Transaction.Support Namespace