EventDefinition<TParam1,TParam2,TParam3,TParam4> 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.
Defines metadata for an event with three parameters and a cached delegate to log the event with reduced allocations.
public class EventDefinition<TParam1,TParam2,TParam3,TParam4> : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase
type EventDefinition<'TParam1, 'TParam2, 'TParam3, 'TParam4> = class
inherit EventDefinitionBase
Public Class EventDefinition(Of TParam1, TParam2, TParam3, TParam4)
Inherits EventDefinitionBase
- TParam1
- TParam2
- TParam3
- TParam4
- Inheritance
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. (Inherited from EventDefinitionBase) |
Event |
A string representing the code that should be passed to ConfigureWarnings(Action<WarningsConfigurationBuilder>) to suppress this event as an error. (Inherited from EventDefinitionBase) |
Level |
The LogLevel at which the event will be logged. (Inherited from EventDefinitionBase) |
Warning |
The configured WarningBehavior. (Inherited from EventDefinitionBase) |
Generate |
Generates the message that would be logged without logging it. Typically used for throwing an exception in warning-as-error cases. |
Generate |
Generates the message that would be logged without logging it. Typically used for throwing an exception in warning-as-error cases. |
Get |
Gets the log behavior for this event. This determines whether it should be logged, thrown as an exception or ignored. (Inherited from EventDefinitionBase) |
Log<TLogger |
Obsolete.
Logs the event, or throws if the event has been configured to be treated as an error. |
Log<TLogger |
Logs the event, or throws if the event has been configured to be treated as an error. |
Log<TLogger |
Logs the event, or throws if the event has been configured to be treated as an error. |
Log<TLogger |
Logs the event, or throws if the event has been configured to be treated as an error. |
Warning |
Returns a warning-as-error exception wrapping the given message for this event. (Inherited from EventDefinitionBase) |
Toode | Versioonid |
---|---|
Entity Framework Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Toote „Entity Framework“ tagasiside
Entity Framework on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: