We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f4bdaf commit 5e4bb26Copy full SHA for 5e4bb26
Orm/Xtensive.Orm/Orm/SessionEventAccessor.cs
@@ -245,15 +245,12 @@ public sealed class SessionEventAccessor
245
246
internal void NotifyDbCommandExecuting(DbCommand command)
247
{
248
- if (DbCommandExecuting!=null)
249
- DbCommandExecuting(this, new DbCommandEventArgs(command));
+ DbCommandExecuting?.Invoke(this, new DbCommandEventArgs(command));
250
}
251
252
internal void NotifyDbCommandExecuted(DbCommand command, Exception exception = null)
253
254
- if(DbCommandExecuted!=null)
255
- DbCommandExecuted(this, new DbCommandEventArgs(command, exception));
256
-
+ DbCommandExecuted?.Invoke(this, new DbCommandEventArgs(command, exception));
257
258
259
internal Expression NotifyQueryExecuting(Expression expression)
0 commit comments