Class NpgsqlEntityTypeExtensions
Extension methods for for Npgsql-specific metadata.
Inheritance
object
NpgsqlEntityTypeExtensions
Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
Syntax
public static class NpgsqlEntityTypeExtensions
Methods
|
Improve this Doc
View Source
GetCockroachDbInterleaveInParent(IReadOnlyEntityType)
Gets the CockroachDB-specific interleave-in-parent setting for the table to which the entity is mapped.
Declaration
public static CockroachDbInterleaveInParent GetCockroachDbInterleaveInParent(this IReadOnlyEntityType entityType)
Parameters
Type |
Name |
Description |
IReadOnlyEntityType |
entityType |
|
Returns
|
Improve this Doc
View Source
GetIsUnlogged(IReadOnlyEntityType)
Gets whether the table to which the entity is mapped is unlogged.
Declaration
public static bool GetIsUnlogged(this IReadOnlyEntityType entityType)
Parameters
Type |
Name |
Description |
IReadOnlyEntityType |
entityType |
|
Returns
|
Improve this Doc
View Source
GetIsUnloggedConfigurationSource(IConventionEntityType)
Gets the configuration source for whether the table to which the entity is mapped is unlogged.
Declaration
public static ConfigurationSource? GetIsUnloggedConfigurationSource(this IConventionEntityType index)
Parameters
Type |
Name |
Description |
IConventionEntityType |
index |
|
Returns
Type |
Description |
ConfigurationSource? |
|
|
Improve this Doc
View Source
GetStorageParameter(IEntityType, string)
Gets a table storage parameter for the table mapped to the entity type.
Declaration
public static string? GetStorageParameter(this IEntityType entityType, string parameterName)
Parameters
Type |
Name |
Description |
IEntityType |
entityType |
|
string |
parameterName |
|
Returns
|
Improve this Doc
View Source
GetStorageParameterConfigurationSource(IConventionEntityType, string)
Gets the configuration source fo a table storage parameter for the table mapped to the entity type.
Declaration
public static ConfigurationSource? GetStorageParameterConfigurationSource(this IConventionEntityType index, string parameterName)
Parameters
Type |
Name |
Description |
IConventionEntityType |
index |
|
string |
parameterName |
|
Returns
Type |
Description |
ConfigurationSource? |
|
|
Improve this Doc
View Source
GetStorageParameters(IReadOnlyEntityType)
Gets all table storage parameters for the table mapped to the entity type.
Declaration
public static Dictionary<string, object?> GetStorageParameters(this IReadOnlyEntityType entityType)
Parameters
Type |
Name |
Description |
IReadOnlyEntityType |
entityType |
|
Returns
Type |
Description |
Dictionary<, ><string, object?> |
|
|
Improve this Doc
View Source
SetIsUnlogged(IConventionEntityType, bool, bool)
Sets whether the table to which the entity is mapped is unlogged.
Declaration
public static bool SetIsUnlogged(this IConventionEntityType entityType, bool unlogged, bool fromDataAnnotation = false)
Parameters
Type |
Name |
Description |
IConventionEntityType |
entityType |
|
bool |
unlogged |
|
bool |
fromDataAnnotation |
|
Returns
|
Improve this Doc
View Source
SetIsUnlogged(IMutableEntityType, bool)
Sets whether the table to which the entity is mapped is unlogged.
Declaration
public static void SetIsUnlogged(this IMutableEntityType entityType, bool unlogged)
Parameters
Type |
Name |
Description |
IMutableEntityType |
entityType |
|
bool |
unlogged |
|
|
Improve this Doc
View Source
SetStorageParameter(IConventionEntityType, string, object?, bool)
Sets a table storage parameter for the table mapped to the entity type.
Declaration
public static object SetStorageParameter(this IConventionEntityType entityType, string parameterName, object? parameterValue, bool fromDataAnnotation = false)
Parameters
Type |
Name |
Description |
IConventionEntityType |
entityType |
|
string |
parameterName |
|
object? |
parameterValue |
|
bool |
fromDataAnnotation |
|
Returns
|
Improve this Doc
View Source
SetStorageParameter(IMutableEntityType, string, object?)
Sets a table storage parameter for the table mapped to the entity type.
Declaration
public static void SetStorageParameter(this IMutableEntityType entityType, string parameterName, object? parameterValue)
Parameters
Type |
Name |
Description |
IMutableEntityType |
entityType |
|
string |
parameterName |
|
object? |
parameterValue |
|