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

IsDefault

public bool IsDefault { 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

Value

public string Value { get; }

Property Value

string

Methods

Equals(DataTypeName)

public bool Equals(DataTypeName other)

Parameters

other DataTypeName

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

FromDisplayName(string, string?)

public static DataTypeName FromDisplayName(string displayName, string? schema = null)

Parameters

displayName string
schema string

Returns

DataTypeName

GetHashCode()

public override int GetHashCode()

Returns

int

ToArrayName()

public DataTypeName ToArrayName()

Returns

DataTypeName

ToDefaultMultirangeName()

public DataTypeName ToDefaultMultirangeName()

Returns

DataTypeName

ToString()

public override string ToString()

Returns

string

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