/
.NET
MI

Microsoft.EntityFrameworkCore

11.0.0-preview.2.26159.112

by docs.microsoft.com

Namespaces & Types

Microsoft.EntityFrameworkCore

ENUM

AutoTransactionBehavior

namespace Microsoft.EntityFrameworkCore

public enumsealed

Indicates whether a transaction will be created automatically by if a user transaction wasn't created via 'BeginTransaction' or provided via 'UseTransaction'.

Values (3)

WhenNeeded

const

Transactions are automatically created as needed. For example, most single SQL statements are implicitly executed within a transaction, and so do not require an explicit one to be created, reducing database round trips. This is the default setting.

Always

const

Transactions are always created automatically, as long there's no user transaction. This setting may create transactions even when they're not needed, adding additional database round trips which may degrade performance.

Never

const

Transactions are never created automatically. Use this options with caution, since the database could be left in an inconsistent state if a failure occurs.

AutoTransactionBehavior.cs
1namespace Microsoft.EntityFrameworkCore
2{
3public sealed enum AutoTransactionBehavior
4{
...// 0 methods
}

Package Metadata

Version

11.0.0-preview.2.26159.112

types

926

License

MIT

Source

---

Other types in namespace

clsChangeTrackerExtensions
enumChangeTrackingStrategy
clsDbContext
strDbContextId
clsDbContextOptions
clsDbContextOptionsBuilder
clsDbFunctions
clsDbFunctionsExtensions
Microsoft.EntityFrameworkCore · 11.0.0-preview.2.26159.112
AugustoDeveloper
926 types · 28 namespaces