Exemplo n.º 1
0
 private void LogCommand(EntitySession session, IDbCommand command, long executionTime, int rowCount = -1)
 {
     if (session.LogDisabled)
     return;
       var entry = new DbCommandLogEntry(session.Context, command, DbModel.Driver.CommandCallFormat, _timeService.UtcNow, executionTime, rowCount);
       session.AddLogEntry(entry);
 }