Class Helpers
- Namespace
- Dynamicweb.Data
- Assembly
- Dynamicweb.Core.dll
Utility for finding a SQL collation from a CultureInfo object.
public class Helpers
- Inheritance
-
Helpers
- Inherited Members
Methods
CreateTransactionScope()
Creates a TransactionScope with the isolation level set to ReadCommitted and 10 minute timeout
public static TransactionScope CreateTransactionScope()
Returns
- TransactionScope
An TransactionScope instance.
CreateTransactionScope(TimeSpan)
Creates a TransactionScope with the isolation level set to ReadCommitted
public static TransactionScope CreateTransactionScope(TimeSpan timeout)
Parameters
timeout
TimeSpanThe transacton timeout.
Returns
- TransactionScope
An TransactionScope instance.
GetNameOfSqlCollation(CultureInfo)
Gets the name of the SQL collation for a given CultureInfo.
public static string GetNameOfSqlCollation(CultureInfo culture)
Parameters
culture
CultureInfoThe culture.
Returns
- string
System.String.