Share via


ModelDependencies.With Method

Definition

Clones this dependency parameter object with one service replaced.

public Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies With (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> logger);
member this.With : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model> -> Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies
Public Function With (logger As IDiagnosticsLogger(Of DbLoggerCategory.Model)) As ModelDependencies

Parameters

logger
IDiagnosticsLogger<DbLoggerCategory.Model>

A replacement for the current dependency of this type.

Returns

A new parameter object with the given service replaced.

Applies to