コード例 #1
0
ファイル: Database_exec.cs プロジェクト: yuanfei05/vita
 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);
 }