zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Infrastructure/EntityFrameworks/CustomDbCommandInterceptor.cs

13 lines
567 B
C#
Raw Normal View History

2023-12-05 09:22:48 +00:00
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);
}
}
}