Class EnumDefinition
- 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 sealed class EnumDefinition : IEquatable<EnumDefinition>
- Inheritance
-
EnumDefinition
- Implements
- Inherited Members
Constructors
EnumDefinition(Type, string?, string?, INpgsqlNameTranslator)
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 EnumDefinition(Type clrType, string? name, string? schema, INpgsqlNameTranslator nameTranslator)
Parameters
clrType
Typename
stringschema
stringnameTranslator
INpgsqlNameTranslator
Properties
ClrType
The CLR type of the enum.
public Type ClrType { get; }
Property Value
Remarks
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.
Labels
Maps the CLR member values to the PostgreSQL value labels.
public IReadOnlyDictionary<object, string> Labels { get; }
Property Value
Remarks
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.
NameTranslator
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 INpgsqlNameTranslator NameTranslator { get; }
Property Value
StoreTypeName
The name of the PostgreSQL enum type to be mapped.
public string StoreTypeName { get; }
Property Value
Remarks
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.
StoreTypeSchema
The PostgreSQL schema in which the enum is defined. If null, the default schema is used (which is public unless changed on the model).
public string? StoreTypeSchema { get; }
Property Value
Remarks
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.
Methods
Equals(EnumDefinition?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(EnumDefinition? other)
Parameters
other
EnumDefinitionAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.