Läs på engelska

Dela via


WarningBehavior Enum

Definition

The runtime behavior of warnings generated by Entity Framework

C#
public enum WarningBehavior
Inheritance
WarningBehavior

Fields

Name Value Description
Log 0

A warning is logged.

Ignore 1

No action is taken.

Throw 2

An exception is thrown.

Remarks

See Logging, events, and diagnostics for more information and examples.

Applies to

Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0