zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Infrastructure/EntityFrameworks/CustomDbCommandInterceptor.cs
2023-12-05 17:22:48 +08:00

13 lines
567 B
C#

using Microsoft.EntityFrameworkCore.Diagnostics;
using System.Data.Common;
namespace ZeroFramework.DeviceCenter.Infrastructure.EntityFrameworks
{
public class CustomDbCommandInterceptor : DbCommandInterceptor
{
public override ValueTask<InterceptionResult<DbDataReader>> ReaderExecutingAsync(DbCommand command, CommandEventData eventData, InterceptionResult<DbDataReader> result, CancellationToken cancellationToken = default)
{
return base.ReaderExecutingAsync(command, eventData, result, cancellationToken);
}
}
}