Interception/DatabaseLogFormatter.cs

ef6 · src/EntityFramework/Infrastructure/Interception/DatabaseLogFormatter.cs · csharp · MIT
database

Customizable EF6 database command logger for debugging and monitoring SQL queries.

// Source: https://github.com/dotnet/ef6 | License: MIT | Copyright .NET Foundation and Contributors
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.

namespace System.Data.Entity.Infrastructure.Interception
{
    using System.ComponentModel;
    using System.Data.Common;
    using System.Data.Entity.Resources;
    using System.Data.Entity.Utilities;
    using System.Diagnostics;
    using System.Diagnostics.CodeAnalysis;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    /// <summary>
    /// This is the default log formatter used when some <see cref="Action{String}" /> is set onto the <see cref="Database.Log

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key