EventDefinitionBase Class
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.
Base class for event definitions.
public abstract class EventDefinitionBase
type EventDefinitionBase = class
Public MustInherit Class EventDefinitionBase
- Inheritance
-
EventDefinitionBase
- Derived
See Implementation of database providers and extensions for more information and examples.
Event |
Creates an event definition instance. |
Event |
Creates an event definition instance. |
Event |
Creates an event definition instance. |
Event |
The EventId. |
Event |
A string representing the code that should be passed to ConfigureWarnings(Action<WarningsConfigurationBuilder>) to suppress this event as an error. |
Level |
The LogLevel at which the event will be logged. |
Warning |
The configured WarningBehavior. |
Get |
Gets the log behavior for this event. This determines whether it should be logged, thrown as an exception or ignored. |
Warning |
Returns a warning-as-error exception wrapping the given message for this event. |
Product | Versions |
---|---|
Entity Framework Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: