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

Commit f9de26f

Browse files
committed
Auto populate OrmLiteConfig.ExecFilter instead of DialectProvider execFilter,
1 parent 49ea445 commit f9de26f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/ServiceStack.Interfaces.dll

0 Bytes
Binary file not shown.

src/ServiceStack.OrmLite/OrmLiteConfig.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ public static IDbConnection ToDbConnection(this string dbConnectionStringOrFileP
104104
public static IOrmLiteExecFilter ExecFilter
105105
{
106106
get
107-
{
107+
{
108+
if (execFilter == null)
109+
execFilter = new OrmLiteExecFilter();
110+
108111
return dialectProvider != null
109112
? dialectProvider.ExecFilter ?? execFilter
110113
: execFilter;

src/ServiceStack.OrmLite/OrmLiteDialectProviderBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ protected OrmLiteDialectProviderBase()
3434
{
3535
UpdateStringColumnDefinitions();
3636
StringSerializer = new JsvStringSerializer();
37-
ExecFilter = new OrmLiteExecFilter();
3837
}
3938

4039
[Conditional("DEBUG")]

0 commit comments

Comments
 (0)