WarningsConfigurationBuilder WarningsConfigurationBuilder Class

Definition

Configures the runtime behavior of warnings generated by Entity Framework. You can set a default behavior and behaviors for each warning type.

This class is used within the ConfigureWarnings(Action<WarningsConfigurationBuilder>) API and it is not designed to be directly constructed in your application code.

public class WarningsConfigurationBuilder
Public Class WarningsConfigurationBuilder
Inheritance
System.ObjectSystem.Object
WarningsConfigurationBuilderWarningsConfigurationBuilder

Constructors

WarningsConfigurationBuilder(WarningsConfiguration) WarningsConfigurationBuilder(WarningsConfiguration)

Initializes a new instance of the WarningsConfigurationBuilder class.

This class is used within the ConfigureWarnings(Action<WarningsConfigurationBuilder>) API and it is not designed to be directly constructed in your application code.

Properties

Configuration Configuration

Gets the internal object used to store configuration.

Methods

Default(WarningBehavior) Default(WarningBehavior)

Sets the default behavior when a warning is generated.

System.Object.Equals(System.Object) System.Object.Equals(System.Object) Inherited from System.Object
System.Object.Equals(System.Object, System.Object) System.Object.Equals(System.Object, System.Object) Inherited from System.Object
System.Object.GetHashCode() System.Object.GetHashCode() Inherited from System.Object
System.Object.GetType() System.Object.GetType() Inherited from System.Object
Ignore(CoreEventId[]) Ignore(CoreEventId())

Causes nothing to happen when the specified core warnings are generated. Database providers (and other extensions) may provide extension method overloads of this method to configure this behavior for warnings they generate.

Log(CoreEventId[]) Log(CoreEventId())

Causes a warning to be logged when the specified core warnings are generated. Database providers (and other extensions) may provide extension method overloads of this method to configure this behavior for warnings they generate.

System.Object.MemberwiseClone() System.Object.MemberwiseClone() Inherited from System.Object
System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) Inherited from System.Object
Throw(CoreEventId[]) Throw(CoreEventId())

Causes an exception to be thrown when the specified core warnings are generated. Database providers (and other extensions) may provide extension method overloads of this method to configure this behavior for warnings they generate.

System.Object.ToString() System.Object.ToString() Inherited from System.Object

Extension Methods

Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Throw(InMemoryEventId[]) Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Throw(InMemoryEventId())
Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Log(InMemoryEventId[]) Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Log(InMemoryEventId())
Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Ignore(InMemoryEventId[]) Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Ignore(InMemoryEventId())
Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Throw(RelationalEventId[]) Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Throw(RelationalEventId())
Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Log(RelationalEventId[]) Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Log(RelationalEventId())
Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Ignore(RelationalEventId[]) Microsoft.EntityFrameworkCore.WarningConfigurationBuilderExtensions.Ignore(RelationalEventId())