Class NpgsqlResources
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.
Inheritance
object
NpgsqlResources
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public static class NpgsqlResources
Methods
|
Improve this Doc
View Source
LogEnumColumnSkipped(IDiagnosticsLogger)
Enum column '{name}' cannot be scaffolded, define a CLR enum type and add the property manually.
Declaration
public static EventDefinition<string> LogEnumColumnSkipped(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<><string> |
|
|
Improve this Doc
View Source
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.
Declaration
public static EventDefinition<string, string> LogExpressionIndexSkipped(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<, ><string, string> |
|
|
Improve this Doc
View Source
LogFoundCollation(IDiagnosticsLogger)
Found collation with name: {collationName}, schema: {schema}, LC_COLLATE: {lcCollate}, LC_CTYPE: {lcCtype}, provider: {provider}, deterministic: {isDeterministic}
Declaration
public static EventDefinition<string, string, string, string, string?, bool> LogFoundCollation(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<, , , , , ><string, string, string, string, string?, bool> |
|
|
Improve this Doc
View Source
LogFoundColumn(IDiagnosticsLogger)
Found column with table: {tableName}, column name: {columnName}, data type: {dataType}, nullable: {isNullable}, identity: {isIdentity}, default value: {defaultValue}, computed value: {computedValue}
Declaration
public static FallbackEventDefinition LogFoundColumn(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
FallbackEventDefinition |
|
|
Improve this Doc
View Source
LogFoundForeignKey(IDiagnosticsLogger)
Found foreign key on table: {tableName}, name: {foreignKeyName}, principal table: {principalTableName}, delete action: {deleteAction}.
Declaration
public static EventDefinition<string, string, string, string> LogFoundForeignKey(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<, , , ><string, string, string, string> |
|
|
Improve this Doc
View Source
LogFoundIndex(IDiagnosticsLogger)
Found index with name: {indexName}, table: {tableName}, is unique: {isUnique}.
Declaration
public static EventDefinition<string, string, bool> LogFoundIndex(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<, , ><string, string, bool> |
|
|
Improve this Doc
View Source
LogFoundPrimaryKey(IDiagnosticsLogger)
Found primary key with name: {primaryKeyName}, table: {tableName}.
Declaration
public static EventDefinition<string, string> LogFoundPrimaryKey(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<, ><string, string> |
|
|
Improve this Doc
View Source
LogFoundSequence(IDiagnosticsLogger)
Found sequence name: {name}, data type: {dataType}, cyclic: {isCyclic}, increment: {increment}, start: {start}, minimum: {min}, maximum: {max}.
Declaration
public static FallbackEventDefinition LogFoundSequence(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
FallbackEventDefinition |
|
|
Improve this Doc
View Source
LogFoundTable(IDiagnosticsLogger)
Found table with name: {name}.
Declaration
public static EventDefinition<string> LogFoundTable(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<><string> |
|
|
Improve this Doc
View Source
LogFoundUniqueConstraint(IDiagnosticsLogger)
Found unique constraint with name: {uniqueConstraintName}, table: {tableName}.
Declaration
public static EventDefinition<string?, string> LogFoundUniqueConstraint(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<, ><string?, string> |
|
|
Improve this Doc
View Source
LogMissingSchema(IDiagnosticsLogger)
Unable to find a schema in the database matching the selected schema {schema}.
Declaration
public static EventDefinition<string?> LogMissingSchema(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<><string?> |
|
|
Improve this Doc
View Source
LogMissingTable(IDiagnosticsLogger)
Unable to find a table in the database matching the selected table {table}.
Declaration
public static EventDefinition<string?> LogMissingTable(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<><string?> |
|
|
Improve this Doc
View Source
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.
Declaration
public static EventDefinition<string, string, string, string> LogPrincipalColumnNotFound(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<, , , ><string, string, string, string> |
|
|
Improve this Doc
View Source
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.
Declaration
public static EventDefinition<string?, string?, string?> LogPrincipalTableNotInSelectionSet(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<, , ><string?, string?, string?> |
|
|
Improve this Doc
View Source
LogUnsupportedColumnConstraintSkipped(IDiagnosticsLogger)
Constraint '{name}' on table {tableName} cannot be scaffolded because it includes a column that cannot be scaffolded (e.g. enum).
Declaration
public static EventDefinition<string?, string> LogUnsupportedColumnConstraintSkipped(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<, ><string?, string> |
|
|
Improve this Doc
View Source
LogUnsupportedColumnIndexSkipped(IDiagnosticsLogger)
Index '{name}' on table {tableName} cannot be scaffolded because it includes a column that cannot be scaffolded (e.g. enum).
Declaration
public static EventDefinition<string, string> LogUnsupportedColumnIndexSkipped(IDiagnosticsLogger logger)
Parameters
Type |
Name |
Description |
IDiagnosticsLogger |
logger |
|
Returns
Type |
Description |
EventDefinition<, ><string, string> |
|