CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
CslaDataConfiguration.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="CslaDataConfiguration.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//-----------------------------------------------------------------------
8namespace Csla.Configuration
9{
13 public static class CslaDataConfigurationExtension
14 {
18 public static CslaDataConfiguration Data(this ICslaConfiguration config)
19 {
20 return new CslaDataConfiguration();
21 }
22 }
23
29 {
35 {
36 ConfigurationManager.AppSettings["CslaDefaultTransactionIsolationLevel"] = level.ToString();
37 return this;
38 }
39
45 {
46 ConfigurationManager.AppSettings["CslaDefaultTransactionTimeoutInSeconds"] = seconds.ToString();
47 return this;
48 }
49
55 public CslaDataConfiguration DefaultTransactionAsyncFlowOption(System.Transactions.TransactionScopeAsyncFlowOption asyncFlowOption)
56 {
57 ConfigurationManager.AppSettings["CslaDefaultTransactionAsyncFlowOption"] = asyncFlowOption.ToString();
58 return this;
59 }
60 }
61}
Use this type to configure the settings for the CSLA .NET data portal.
CslaDataConfiguration DefaultTransactionIsolationLevel(TransactionIsolationLevel level)
Sets the default transaction isolation level.
CslaDataConfiguration DefaultTransactionAsyncFlowOption(System.Transactions.TransactionScopeAsyncFlowOption asyncFlowOption)
Sets the default transaction async flow option used to create new TransactionScope objects.
CslaDataConfiguration DefaultTransactionTimeoutInSeconds(int seconds)
Sets the default transaction timeout in seconds.
TransactionIsolationLevel
Specifies an isolation level for transactions controlled by TransactionalAttribute