Table of Contents

Struct DataTypeName

Namespace
Npgsql.Internal.Postgres
Assembly
Npgsql.dll

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

string

IsArray

public bool IsArray { get; }

Property Value

bool

Schema

public string Schema { get; }

Property Value

string

UnqualifiedDisplayName

public string UnqualifiedDisplayName { get; }

Property Value

string

UnqualifiedName

public string UnqualifiedName { get; }

Property Value

string

Unspecified

public static DataTypeName Unspecified { get; }

Property Value

DataTypeName

Value

public string Value { get; }

Property Value

string

Methods

Equals(DataTypeName)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(DataTypeName other)

Parameters

other DataTypeName

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The 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

displayName string
schema string

Returns

DataTypeName

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

DataTypeName

ToDefaultMultirangeName()

public DataTypeName ToDefaultMultirangeName()

Returns

DataTypeName

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 DataTypeName
right DataTypeName

Returns

bool

implicit operator string(DataTypeName)

public static implicit operator string(DataTypeName value)

Parameters

value DataTypeName

Returns

string

operator !=(DataTypeName, DataTypeName)

public static bool operator !=(DataTypeName left, DataTypeName right)

Parameters

left DataTypeName
right DataTypeName

Returns

bool