WarningConfigurationBuilderExtensions.Log Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Log(WarningsConfigurationBuilder, InMemoryEventId[]) |
Causes a warning to be logged when the specified in-memory warnings are generated. |
Log(WarningsConfigurationBuilder, RelationalEventId[]) |
Causes a warning to be logged when the specified relational database warnings are generated. |
Log(WarningsConfigurationBuilder, InMemoryEventId[])
Causes a warning to be logged when the specified in-memory warnings are generated.
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
Parameters
- warningsConfigurationBuilder
- WarningsConfigurationBuilder
The builder being used to configure warnings.
- inMemoryEventIds
- InMemoryEventId[]
The InMemoryEventId(s) for the warnings.
Returns
The same builder instance so that multiple calls can be chained.
Applies to
Log(WarningsConfigurationBuilder, RelationalEventId[])
Causes a warning to be logged when the specified relational database warnings are generated.
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
Parameters
- warningsConfigurationBuilder
- WarningsConfigurationBuilder
The builder being used to configure warnings.
- relationalEventIds
- RelationalEventId[]
The RelationalEventId(s) for the warnings.
Returns
The same builder instance so that multiple calls can be chained.
Applies to
Entity Framework