Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 163d1b4

Browse files
committed
Merge branch 'master' of github.com:ServiceStack/ServiceStack.OrmLite
2 parents 36c1fc3 + 02ec558 commit 163d1b4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/ServiceStack.OrmLite/OrmLiteConfig.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ public static class OrmLiteConfig
2020
{
2121
public const string IdField = "Id";
2222

23-
private const int defaultCommandTimeout = 30;
23+
private const int DefaultCommandTimeout = 30;
2424
private static int? commandTimeout;
2525

2626
public static int CommandTimeout
2727
{
28-
get => commandTimeout ?? defaultCommandTimeout;
28+
get => commandTimeout ?? DefaultCommandTimeout;
2929
set => commandTimeout = value;
3030
}
3131

@@ -36,7 +36,7 @@ public static IOrmLiteDialectProvider DialectProvider
3636
{
3737
if (dialectProvider == null)
3838
{
39-
throw new ArgumentNullException("DialectProvider",
39+
throw new ArgumentNullException(nameof(DialectProvider),
4040
"You must set the singleton 'OrmLiteConfig.DialectProvider' to use the OrmLiteWriteExtensions");
4141
}
4242
return dialectProvider;
@@ -60,22 +60,22 @@ public static IOrmLiteDialectProvider GetDialectProvider(this IDbConnection db)
6060

6161
public static IOrmLiteExecFilter GetExecFilter(this IOrmLiteDialectProvider dialectProvider) {
6262
return dialectProvider != null
63-
? dialectProvider.ExecFilter ?? ExecFilter
64-
: ExecFilter;
63+
? dialectProvider.ExecFilter ?? ExecFilter
64+
: ExecFilter;
6565
}
6666

6767
public static IOrmLiteExecFilter GetExecFilter(this IDbCommand dbCmd) {
68-
var dialectProvider = dbCmd is OrmLiteCommand ormLiteCmd
68+
var dialect = dbCmd is OrmLiteCommand ormLiteCmd
6969
? ormLiteCmd.DialectProvider
7070
: DialectProvider;
71-
return dialectProvider.GetExecFilter();
71+
return dialect.GetExecFilter();
7272
}
7373

7474
public static IOrmLiteExecFilter GetExecFilter(this IDbConnection db) {
75-
var dialectProvider = db is OrmLiteConnection ormLiteConn
75+
var dialect = db is OrmLiteConnection ormLiteConn
7676
? ormLiteConn.DialectProvider
7777
: DialectProvider;
78-
return dialectProvider.GetExecFilter();
78+
return dialect.GetExecFilter();
7979
}
8080

8181
public static void SetLastCommandText(this IDbConnection db, string sql)

0 commit comments

Comments
 (0)