CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
DataOptions.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="DataOptions.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Use this type to configure the settings for CSLA .NET</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Transactions;
10
11namespace Csla.Configuration
12{
17 public class DataOptions
18 {
24 {
26 return this;
27 }
28
34 {
36 return this;
37 }
38
44 public DataOptions DefaultTransactionAsyncFlowOption(TransactionScopeAsyncFlowOption asyncFlowOption)
45 {
47 return this;
48 }
49
50#if !NETSTANDARD2_0 && !NET5_0 && !NET6_0
57 [Obsolete("Use dependency injection", false)]
58 public DataOptions DbProvider(string dbProvider)
59 {
60 Data.ConnectionManager.DbProvider = dbProvider;
61 return this;
62 }
63#endif
64 }
65}
Provides consistent context information between the client and server DataPortal objects.
static int DefaultTransactionTimeoutInSeconds
Gets or sets the default transaction timeout in seconds.
static System.Transactions.TransactionScopeAsyncFlowOption DefaultTransactionAsyncFlowOption
Gets or sets the default transaction async flow option used to create new TransactionScope objects.
static TransactionIsolationLevel DefaultTransactionIsolationLevel
Gets or sets the default transaction isolation level.
Use this type to configure the settings for the CSLA .NET data subsystem.
Definition: DataOptions.cs:18
DataOptions DefaultTransactionAsyncFlowOption(TransactionScopeAsyncFlowOption asyncFlowOption)
Sets the default transaction async flow option used to create new TransactionScope objects.
Definition: DataOptions.cs:44
DataOptions DefaultTransactionIsolationLevel(TransactionIsolationLevel level)
Sets the default transaction isolation level.
Definition: DataOptions.cs:23
DataOptions DefaultTransactionTimeoutInSeconds(int seconds)
Sets the default transaction timeout in seconds.
Definition: DataOptions.cs:33
DataOptions DbProvider(string dbProvider)
Sets the invariant name of a provider for use by DbProviderFactories.GetFactory().
Definition: DataOptions.cs:58
TransactionIsolationLevel
Specifies an isolation level for transactions controlled by TransactionalAttribute