Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaPiovanelli committed Apr 11, 2024
1 parent 9568293 commit c28686b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Orchard/Data/NoLockInterceptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private string AddNoLockHints(string query, IEnumerable<string> tableNames) {
if (tableIndex == fromIndex + 1
|| parts[tableIndex - 1].Equals(",")) {

if (parts[tableIndex+1].Equals("where", StringComparison.OrdinalIgnoreCase)) {
if (parts[tableIndex + 1].Equals("where", StringComparison.OrdinalIgnoreCase)) {
// There is no alias in the query, so we add "WITH(NOLOCK)" immediately after table name but before the "where" clause.
parts.Insert(tableIndex + 1, "WITH(NOLOCK)");
} else {
Expand Down

0 comments on commit c28686b

Please sign in to comment.