共用方式為


ModelDependencies.With 方法

定義

複製此相依性參數物件,並取代一個服務。

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

參數

logger
IDiagnosticsLogger<DbLoggerCategory.Model>

取代此類型的目前相依性。

傳回

已取代指定服務的新參數物件。

適用於