SqlServerEventId Class
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.
Event IDs for SQL Server events that correspond to messages logged to an ILogger and events sent to a DiagnosticSource.
public static class SqlServerEventId
type SqlServerEventId = class
Public Class SqlServerEventId
- Inheritance
-
SqlServerEventId
Remarks
These IDs are also used with WarningsConfigurationBuilder to configure the behavior of warnings.
See Logging, events, and diagnostics, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Fields
ByteIdentityColumnWarning |
A byte property is set up to use a SQL Server identity column. |
ColumnFound |
A column was found. |
ColumnNotNamedWarning |
Obsolete.
A column is not named. This event is in the DbLoggerCategory.Scaffolding category. |
ColumnSkipped |
Obsolete.
A column was skipped. This event is in the DbLoggerCategory.Scaffolding category. |
ColumnWithoutTypeWarning |
A column was skipped because its database type could not be found. |
ConflictingValueGenerationStrategiesWarning |
There are conflicting value generation methods for a property. |
DecimalTypeDefaultWarning |
No explicit type for a decimal column. |
DecimalTypeKeyWarning |
Decimal column is part of the key. |
DefaultSchemaFound |
A default schema was found. |
DuplicateForeignKeyConstraintIgnored |
A duplicate foreign key constraint was skipped. |
ForeignKeyColumnFound |
Obsolete.
A column of a foreign key was found. This event is in the DbLoggerCategory.Scaffolding category. |
ForeignKeyColumnMissingWarning |
Obsolete.
A foreign key column was not found. This event is in the DbLoggerCategory.Scaffolding category. |
ForeignKeyColumnNotNamedWarning |
Obsolete.
A foreign key column was not named. This event is in the DbLoggerCategory.Scaffolding category. |
ForeignKeyColumnsNotMappedWarning |
Obsolete.
Columns in a foreign key were not mapped. This event is in the DbLoggerCategory.Scaffolding category. |
ForeignKeyFound |
A foreign key was found. |
ForeignKeyNotNamedWarning |
Obsolete.
A foreign key is not named. This event is in the DbLoggerCategory.Scaffolding category. |
ForeignKeyPrincipalColumnMissingWarning |
A principal column referenced by a foreign key was not found. |
ForeignKeyReferencesMissingPrincipalTableWarning |
A foreign key references a missing table at the principal end. |
ForeignKeyReferencesUnknownPrincipalTableWarning |
A foreign key references a unknown table at the principal end. |
ForeignKeyTableMissingWarning |
Obsolete.
A foreign key table was not found. This event is in the DbLoggerCategory.Scaffolding category. |
IndexColumnFound |
Obsolete.
An index was skipped. This event is in the DbLoggerCategory.Scaffolding category. |
IndexColumnNotNamedWarning |
Obsolete.
An index column was not named. This event is in the DbLoggerCategory.Scaffolding category. |
IndexColumnSkipped |
Obsolete.
A column of an index was skipped. This event is in the DbLoggerCategory.Scaffolding category. |
IndexColumnsNotMappedWarning |
Obsolete.
Columns in an index were not mapped. This event is in the DbLoggerCategory.Scaffolding category. |
IndexFound |
An index was found. |
IndexNotNamedWarning |
Obsolete.
An index is not named. This event is in the DbLoggerCategory.Scaffolding category. |
IndexTableMissingWarning |
Obsolete.
The table referenced by an index was not found. This event is in the DbLoggerCategory.Scaffolding category. |
MissingSchemaWarning |
The database is missing a schema. |
MissingTableWarning |
The database is missing a table. |
MissingViewDefinitionRightsWarning |
The database user has not been granted 'VIEW DEFINITION' rights. Scaffolding requires these rights to construct the Entity Framework model correctly. Without these rights, parts of the scaffolded model may be missing, resulting in incorrect interactions between Entity Framework and the database at runtime. |
PrimaryKeyFound |
Primary key was found. |
ReflexiveConstraintIgnored |
A reflexive foreign key constraint was skipped. |
SavepointsDisabledBecauseOfMARS |
Savepoints have been disabled when saving changes with an external transaction, because Multiple Active Result Sets is enabled. |
SequenceFound |
A sequence was found. |
SequenceNotNamedWarning |
Obsolete.
The database has an unnamed sequence. This event is in the DbLoggerCategory.Scaffolding category. |
TableFound |
A table was found. |
TableSkipped |
Obsolete.
A table was skipped. This event is in the DbLoggerCategory.Scaffolding category. |
TypeAliasFound |
A type alias was found. |
UniqueConstraintFound |
An unique constraint was found. |
Applies to
Entity Framework