Class NpgsqlEntityTypeExtensions
- Namespace
- Microsoft.EntityFrameworkCore
- Assembly
- Npgsql.EntityFrameworkCore.PostgreSQL.dll
Extension methods for IEntityType for Npgsql-specific metadata.
public static class NpgsqlEntityTypeExtensions
- Inheritance
-
NpgsqlEntityTypeExtensions
- Inherited Members
Methods
GetCockroachDbInterleaveInParent(IReadOnlyEntityType)
Gets the CockroachDB-specific interleave-in-parent setting for the table to which the entity is mapped.
public static CockroachDbInterleaveInParent GetCockroachDbInterleaveInParent(this IReadOnlyEntityType entityType)
Parameters
entityTypeIReadOnlyEntityType
Returns
GetIsUnlogged(IReadOnlyEntityType)
Gets whether the table to which the entity is mapped is unlogged.
public static bool GetIsUnlogged(this IReadOnlyEntityType entityType)
Parameters
entityTypeIReadOnlyEntityType
Returns
GetIsUnloggedConfigurationSource(IConventionEntityType)
Gets the configuration source for whether the table to which the entity is mapped is unlogged.
public static ConfigurationSource? GetIsUnloggedConfigurationSource(this IConventionEntityType index)
Parameters
indexIConventionEntityType
Returns
GetStorageParameter(IEntityType, string)
Gets a storage parameter for the table mapped to the entity type.
public static string? GetStorageParameter(this IEntityType entityType, string parameterName)
Parameters
entityTypeIEntityTypeparameterNamestring
Returns
GetStorageParameterConfigurationSource(IConventionEntityType, string)
Gets the configuration source for a storage parameter for the table mapped to the entity type.
public static ConfigurationSource? GetStorageParameterConfigurationSource(this IConventionEntityType index, string parameterName)
Parameters
indexIConventionEntityTypeparameterNamestring
Returns
GetStorageParameters(IReadOnlyEntityType)
Gets all storage parameters for the table mapped to the entity type.
public static Dictionary<string, object?> GetStorageParameters(this IReadOnlyEntityType entityType)
Parameters
entityTypeIReadOnlyEntityType
Returns
SetIsUnlogged(IConventionEntityType, bool, bool)
Sets whether the table to which the entity is mapped is unlogged.
public static bool SetIsUnlogged(this IConventionEntityType entityType, bool unlogged, bool fromDataAnnotation = false)
Parameters
entityTypeIConventionEntityTypeunloggedboolfromDataAnnotationbool
Returns
SetIsUnlogged(IMutableEntityType, bool)
Sets whether the table to which the entity is mapped is unlogged.
public static void SetIsUnlogged(this IMutableEntityType entityType, bool unlogged)
Parameters
entityTypeIMutableEntityTypeunloggedbool
SetStorageParameter(IConventionEntityType, string, object?, bool)
Sets a storage parameter on the table mapped to the entity type.
public static object SetStorageParameter(this IConventionEntityType entityType, string parameterName, object? parameterValue, bool fromDataAnnotation = false)
Parameters
entityTypeIConventionEntityTypeparameterNamestringparameterValueobjectfromDataAnnotationbool
Returns
SetStorageParameter(IMutableEntityType, string, object?)
Sets a storage parameter on the table mapped to the entity type.
public static void SetStorageParameter(this IMutableEntityType entityType, string parameterName, object? parameterValue)
Parameters
entityTypeIMutableEntityTypeparameterNamestringparameterValueobject