Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.CheckWriteOperations Property

Gets or sets whether to check that the Hibernate Session is not in read-only mode in case of write operations (save/update/delete).

[Visual Basic]
Public Overridable Property CheckWriteOperations() As Boolean
   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public virtual bool CheckWriteOperations { public get; public set; }

Property Value

true if check that the Hibernate Session is not in read-only mode in case of write operations; otherwise, false.

Remarks

Default is "true", for fail-fast behavior when attempting write operations within a read-only transaction. Turn this off to allow save/update/delete on a Session with flush mode NEVER.

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace