Search Results for

    Show / Hide Table of Contents

    Struct PgTypeId

    A discriminated union of Oid and DataTypeName.

    Implements
    IEquatable<><PgTypeId>
    Namespace: Npgsql.Internal.Postgres
    Assembly: Npgsql.dll
    Syntax
    public readonly struct PgTypeId : IEquatable<PgTypeId>

    Constructors

    | Improve this Doc View Source

    PgTypeId(DataTypeName)

    Declaration
    public PgTypeId(DataTypeName name)
    Parameters
    Type Name Description
    DataTypeName name
    | Improve this Doc View Source

    PgTypeId(Oid)

    Declaration
    public PgTypeId(Oid oid)
    Parameters
    Type Name Description
    Oid oid

    Properties

    | Improve this Doc View Source

    DataTypeName

    Declaration
    public DataTypeName DataTypeName { get; }
    Property Value
    Type Description
    DataTypeName
    | Improve this Doc View Source

    IsDataTypeName

    Declaration
    public bool IsDataTypeName { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsOid

    Declaration
    public bool IsOid { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    Oid

    Declaration
    public Oid Oid { get; }
    Property Value
    Type Description
    Oid

    Methods

    | Improve this Doc View Source

    Equals(PgTypeId)

    Declaration
    public bool Equals(PgTypeId other)
    Parameters
    Type Name Description
    PgTypeId other
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object? obj
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    Operators

    | Improve this Doc View Source

    operator ==(PgTypeId, PgTypeId)

    Declaration
    public static bool operator ==(PgTypeId left, PgTypeId right)
    Parameters
    Type Name Description
    PgTypeId left
    PgTypeId right
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    implicit operator PgTypeId(DataTypeName)

    Declaration
    public static implicit operator PgTypeId(DataTypeName name)
    Parameters
    Type Name Description
    DataTypeName name
    Returns
    Type Description
    PgTypeId
    | Improve this Doc View Source

    implicit operator PgTypeId(Oid)

    Declaration
    public static implicit operator PgTypeId(Oid id)
    Parameters
    Type Name Description
    Oid id
    Returns
    Type Description
    PgTypeId
    | Improve this Doc View Source

    operator !=(PgTypeId, PgTypeId)

    Declaration
    public static bool operator !=(PgTypeId left, PgTypeId right)
    Parameters
    Type Name Description
    PgTypeId left
    PgTypeId right
    Returns
    Type Description
    bool

    Implements

    IEquatable<>
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team