共用方式為


WarningConfigurationBuilderExtensions.Log 方法

定義

多載

Log(WarningsConfigurationBuilder, InMemoryEventId[])

產生指定的記憶體內部警告時,會導致記錄警告。

Log(WarningsConfigurationBuilder, RelationalEventId[])

產生指定的關係資料庫警告時,會導致記錄警告。

Log(WarningsConfigurationBuilder, InMemoryEventId[])

產生指定的記憶體內部警告時,會導致記錄警告。

public static Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder Log (this Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder warningsConfigurationBuilder, params Microsoft.EntityFrameworkCore.Infrastructure.InMemoryEventId[] inMemoryEventIds);
static member Log : Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder * Microsoft.EntityFrameworkCore.Infrastructure.InMemoryEventId[] -> Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder
<Extension()>
Public Function Log (warningsConfigurationBuilder As WarningsConfigurationBuilder, ParamArray inMemoryEventIds As InMemoryEventId()) As WarningsConfigurationBuilder

參數

warningsConfigurationBuilder
WarningsConfigurationBuilder

用來設定警告的產生器。

inMemoryEventIds
InMemoryEventId[]

警告 InMemoryEventId 的 () 。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於

Log(WarningsConfigurationBuilder, RelationalEventId[])

產生指定的關係資料庫警告時,會導致記錄警告。

public static Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder Log (this Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder warningsConfigurationBuilder, params Microsoft.EntityFrameworkCore.Infrastructure.RelationalEventId[] relationalEventIds);
static member Log : Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder * Microsoft.EntityFrameworkCore.Infrastructure.RelationalEventId[] -> Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder
<Extension()>
Public Function Log (warningsConfigurationBuilder As WarningsConfigurationBuilder, ParamArray relationalEventIds As RelationalEventId()) As WarningsConfigurationBuilder

參數

warningsConfigurationBuilder
WarningsConfigurationBuilder

用來設定警告的產生器。

relationalEventIds
RelationalEventId[]

警告 RelationalEventId 的 () 。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於