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 () 。

返回

同一生成器实例,以便可以链接多个调用。

适用于