TransactionSettingsAttribute class

namespace: Serenity.Data   assemblySerenity.Net.Data

Determines the transaction isolation level and defer start flag used for a service endpoint action use 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 / sets if the transaction start should be deferred if possible (generally until the connection property of unit of work object is read). This might have undesired side effects so use with care.
HasDeferStart { get; } Gets if DeferStart property is set
IsolationLevel { get; } Gets the isolation level.

See Also