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

Commit 6e9b4e3

Browse files
committed
Remove duplicate execution of Insert/Update filters in db.Save()
1 parent 8be66a1 commit 6e9b4e3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/ServiceStack.OrmLite/OrmLiteWriteExtensions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -680,9 +680,6 @@ internal static bool Save<T>(this IDbCommand dbCmd, T obj)
680680
}
681681
else
682682
{
683-
if (OrmLiteConfig.InsertFilter != null)
684-
OrmLiteConfig.InsertFilter(dbCmd, obj);
685-
686683
dbCmd.Insert(obj);
687684
}
688685

@@ -692,9 +689,6 @@ internal static bool Save<T>(this IDbCommand dbCmd, T obj)
692689
return true;
693690
}
694691

695-
if (OrmLiteConfig.UpdateFilter != null)
696-
OrmLiteConfig.UpdateFilter(dbCmd, obj);
697-
698692
dbCmd.Update(obj);
699693

700694
if (modelDef.RowVersion != null)

0 commit comments

Comments
 (0)