Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ITransactionDefinition.ReadOnly Property

Get whether to optimize as read-only transaction.

[Visual Basic]
Public MustOverride ReadOnly Property ReadOnly() As Boolean
   Public Get
   End Get
End Property
[C#]
public bool ReadOnly { public get; }

Remarks

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

ITransactionDefinition Interface | Spring.Transaction Namespace