CoreLoggerExtensions.SaveChangesStarting 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
事件的 SaveChangesStarting 日志。
public static Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> SaveChangesStarting(this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> diagnostics, Microsoft.EntityFrameworkCore.DbContext context);
public static void SaveChangesStarting(this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> diagnostics, Microsoft.EntityFrameworkCore.DbContext context);
static member SaveChangesStarting : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> * Microsoft.EntityFrameworkCore.DbContext -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>
static member SaveChangesStarting : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Update> * Microsoft.EntityFrameworkCore.DbContext -> unit
<Extension()>
Public Function SaveChangesStarting (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Update), context As DbContext) As InterceptionResult(Of Integer)
<Extension()>
Public Sub SaveChangesStarting (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Update), context As DbContext)
参数
- diagnostics
- IDiagnosticsLogger<DbLoggerCategory.Update>
要使用的诊断记录器。
- context
- DbContext
正在使用的上下文。
返回
可能截获的结果。