Exemple #1
0
        /// <summary>
        /// 外部定義に設定されている監査ログ対象のテーブルへのクエリかをチェックし、対象の場合はエントリーを作成します。
        /// </summary>
        private void CreateLogEntryIfTarget(DbCommand command)
        {
            var entry = CommandLogEntry.Create(command);

            entry.ElapsedMilliseconds = stopwatch.ElapsedMilliseconds;
            entry.ExecutedDateTime    = DateTimeOffset.Now;
            entries.Add(entry);
        }