Struct DataTypeName
Represents the fully-qualified name of a PostgreSQL type.
public readonly struct DataTypeName : IEquatable<DataTypeName>
- Implements
- Inherited Members
Constructors
DataTypeName(string)
public DataTypeName(string fullyQualifiedDataTypeName)
Parameters
fullyQualifiedDataTypeName
string
Properties
DisplayName
public string DisplayName { get; }
Property Value
IsArray
public bool IsArray { get; }
Property Value
Schema
public string Schema { get; }
Property Value
UnqualifiedDisplayName
public string UnqualifiedDisplayName { get; }
Property Value
UnqualifiedName
public string UnqualifiedName { get; }
Property Value
Unspecified
public static DataTypeName Unspecified { get; }
Property Value
Value
public string Value { get; }
Property Value
Methods
Equals(DataTypeName)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DataTypeName other)
Parameters
other
DataTypeNameAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
FromDisplayName(string, string?)
public static DataTypeName FromDisplayName(string displayName, string? schema = null)
Parameters
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToArrayName()
public DataTypeName ToArrayName()
Returns
ToDefaultMultirangeName()
public DataTypeName ToDefaultMultirangeName()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(DataTypeName, DataTypeName)
public static bool operator ==(DataTypeName left, DataTypeName right)
Parameters
left
DataTypeNameright
DataTypeName
Returns
implicit operator string(DataTypeName)
public static implicit operator string(DataTypeName value)
Parameters
value
DataTypeName
Returns
operator !=(DataTypeName, DataTypeName)
public static bool operator !=(DataTypeName left, DataTypeName right)
Parameters
left
DataTypeNameright
DataTypeName