WarningsConfiguration.WithExplicit 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
WithExplicit(IEnumerable<ValueTuple<EventId,LogLevel>>) |
Creates a new instance with the given log level set for all given event IDs. It is unusual to call this method directly. Instead use WarningsConfigurationBuilder. |
WithExplicit(IEnumerable<EventId>, WarningBehavior) |
Creates a new instance with the given explicit WarningBehavior set for all given event IDs. It is unusual to call this method directly. Instead use WarningsConfigurationBuilder. |
WithExplicit(IEnumerable<ValueTuple<EventId,LogLevel>>)
Creates a new instance with the given log level set for all given event IDs. It is unusual to call this method directly. Instead use WarningsConfigurationBuilder.
public virtual Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration WithExplicit (System.Collections.Generic.IEnumerable<(Microsoft.Extensions.Logging.EventId Id, Microsoft.Extensions.Logging.LogLevel Level)> eventsAndLevels);
abstract member WithExplicit : seq<ValueTuple<Microsoft.Extensions.Logging.EventId, Microsoft.Extensions.Logging.LogLevel>> -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration
override this.WithExplicit : seq<ValueTuple<Microsoft.Extensions.Logging.EventId, Microsoft.Extensions.Logging.LogLevel>> -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration
Public Overridable Function WithExplicit (eventsAndLevels As IEnumerable(Of ValueTuple(Of EventId, LogLevel))) As WarningsConfiguration
Parameters
- eventsAndLevels
- IEnumerable<ValueTuple<EventId,LogLevel>>
The event IDs and corresponding log levels to set.
Returns
A new instance with the behaviors set.
Applies to
WithExplicit(IEnumerable<EventId>, WarningBehavior)
Creates a new instance with the given explicit WarningBehavior set for all given event IDs. It is unusual to call this method directly. Instead use WarningsConfigurationBuilder.
public virtual Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration WithExplicit (System.Collections.Generic.IEnumerable<Microsoft.Extensions.Logging.EventId> eventIds, Microsoft.EntityFrameworkCore.WarningBehavior warningBehavior);
abstract member WithExplicit : seq<Microsoft.Extensions.Logging.EventId> * Microsoft.EntityFrameworkCore.WarningBehavior -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration
override this.WithExplicit : seq<Microsoft.Extensions.Logging.EventId> * Microsoft.EntityFrameworkCore.WarningBehavior -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfiguration
Public Overridable Function WithExplicit (eventIds As IEnumerable(Of EventId), warningBehavior As WarningBehavior) As WarningsConfiguration
Parameters
- eventIds
- IEnumerable<EventId>
The event IDs for which the behavior should be set.
- warningBehavior
- WarningBehavior
The behavior to set.
Returns
A new instance with the behaviors set.
Applies to
Entity Framework