Class NpgsqlResources
- Namespace
- Npgsql.EntityFrameworkCore.PostgreSQL.Internal
- Assembly
- Npgsql.EntityFrameworkCore.PostgreSQL.dll
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public static class NpgsqlResources
- Inheritance
-
NpgsqlResources
- Inherited Members
Methods
LogEnumColumnSkipped(IDiagnosticsLogger)
Enum column '{name}' cannot be scaffolded, define a CLR enum type and add the property manually.
public static EventDefinition<string> LogEnumColumnSkipped(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogExpressionIndexSkipped(IDiagnosticsLogger)
Expression index '{name}' on table {tableName} cannot be scaffolded, expression indices aren't supported and must be added via raw SQL in migrations.
public static EventDefinition<string, string> LogExpressionIndexSkipped(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogFoundCollation(IDiagnosticsLogger)
Found collation with name: {collationName}, schema: {schema}, LC_COLLATE: {lcCollate}, LC_CTYPE: {lcCtype}, provider: {provider}, deterministic: {isDeterministic}
public static EventDefinition<string, string, string, string, string?, bool> LogFoundCollation(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogFoundColumn(IDiagnosticsLogger)
Found column with table: {tableName}, column name: {columnName}, data type: {dataType}, nullable: {isNullable}, identity: {isIdentity}, default value: {defaultValue}, computed value: {computedValue}
public static FallbackEventDefinition LogFoundColumn(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogFoundForeignKey(IDiagnosticsLogger)
Found foreign key on table: {tableName}, name: {foreignKeyName}, principal table: {principalTableName}, delete action: {deleteAction}.
public static EventDefinition<string, string, string, string> LogFoundForeignKey(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogFoundIndex(IDiagnosticsLogger)
Found index with name: {indexName}, table: {tableName}, is unique: {isUnique}.
public static EventDefinition<string, string, bool> LogFoundIndex(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogFoundPrimaryKey(IDiagnosticsLogger)
Found primary key with name: {primaryKeyName}, table: {tableName}.
public static EventDefinition<string, string> LogFoundPrimaryKey(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogFoundSequence(IDiagnosticsLogger)
Found sequence name: {name}, data type: {dataType}, cyclic: {isCyclic}, increment: {increment}, start: {start}, minimum: {min}, maximum: {max}.
public static FallbackEventDefinition LogFoundSequence(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogFoundTable(IDiagnosticsLogger)
Found table with name: {name}.
public static EventDefinition<string> LogFoundTable(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogFoundUniqueConstraint(IDiagnosticsLogger)
Found unique constraint with name: {uniqueConstraintName}, table: {tableName}.
public static EventDefinition<string?, string> LogFoundUniqueConstraint(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogMissingSchema(IDiagnosticsLogger)
Unable to find a schema in the database matching the selected schema {schema}.
public static EventDefinition<string?> LogMissingSchema(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogMissingTable(IDiagnosticsLogger)
Unable to find a table in the database matching the selected table {table}.
public static EventDefinition<string?> LogMissingTable(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogPrincipalColumnNotFound(IDiagnosticsLogger)
For foreign key {foreignKeyName} on table {tableName}, unable to find the column called {principalColumnName} on the foreign key's principal table, {principaltableName}. Skipping foreign key.
public static EventDefinition<string, string, string, string> LogPrincipalColumnNotFound(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogPrincipalTableNotInSelectionSet(IDiagnosticsLogger)
For foreign key {fkName} on table {tableName}, unable to model the end of the foreign key on principal table {principaltableName}. This is usually because the principal table was not included in the selection set.
public static EventDefinition<string?, string?, string?> LogPrincipalTableNotInSelectionSet(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogUnsupportedColumnConstraintSkipped(IDiagnosticsLogger)
Constraint '{name}' on table {tableName} cannot be scaffolded because it includes a column that cannot be scaffolded (e.g. enum).
public static EventDefinition<string?, string> LogUnsupportedColumnConstraintSkipped(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger
Returns
LogUnsupportedColumnIndexSkipped(IDiagnosticsLogger)
Index '{name}' on table {tableName} cannot be scaffolded because it includes a column that cannot be scaffolded (e.g. enum).
public static EventDefinition<string, string> LogUnsupportedColumnIndexSkipped(IDiagnosticsLogger logger)
Parameters
logger
IDiagnosticsLogger