Skip to content

TransactionSettingsAttribute class

namespace: Serenity.Data   assemblySerenity.Net.Services

Determines the transaction isolation level and defer start flag used for a service endpoint action when creating the UnitOfWork class.

[AttributeUsage(AttributeTargets.All)]
public class TransactionSettingsAttribute : Attribute

Public Members

name description
TransactionSettingsAttribute() Initializes a new instance of the attribute.
TransactionSettingsAttribute(…) Initializes a new instance of the attribute.
DeferStart { get; set; } Gets or sets whether the transaction start should be deferred if possible (generally until the connection property of the unit of work object is read). This might have undesired side effects, so use with care.
HasDeferStart { get; } Gets whether the DeferStart property is set.
IsolationLevel { get; } Gets the isolation level.

See Also