Search Results for

    Show / Hide Table of Contents

    Class NpgsqlTsQuery

    Represents a PostgreSQL tsquery. This is the base class for the lexeme, not, or, and, and "followed by" nodes.

    Inheritance
    object
    NpgsqlTsQuery
    NpgsqlTsQueryBinOp
    NpgsqlTsQueryEmpty
    NpgsqlTsQueryLexeme
    NpgsqlTsQueryNot
    Namespace: NpgsqlTypes
    Assembly: Npgsql.dll
    Syntax
    public abstract class NpgsqlTsQuery : IEquatable<NpgsqlTsQuery>

    Constructors

    | Improve this Doc View Source

    NpgsqlTsQuery(NodeKind)

    Constructs an NpgsqlTsQuery.

    Declaration
    protected NpgsqlTsQuery(NpgsqlTsQuery.NodeKind kind)
    Parameters
    Type Name Description
    NpgsqlTsQuery.NodeKind kind

    Properties

    | Improve this Doc View Source

    Kind

    Node kind

    Declaration
    public NpgsqlTsQuery.NodeKind Kind { get; }
    Property Value
    Type Description
    NpgsqlTsQuery.NodeKind

    Methods

    | Improve this Doc View Source

    Equals(NpgsqlTsQuery?)

    Returns a value indicating whether this instance and a specified NpgsqlTsQuery object represent the same value.

    Declaration
    public abstract bool Equals(NpgsqlTsQuery? other)
    Parameters
    Type Name Description
    NpgsqlTsQuery other

    An object to compare to this instance.

    Returns
    Type Description
    bool

    true if g is equal to this instance; otherwise, false.

    | 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

    Parse(string)

    Parses a tsquery in PostgreSQL's text format.

    Declaration
    public static NpgsqlTsQuery Parse(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    NpgsqlTsQuery
    | Improve this Doc View Source

    ToString()

    Writes the tsquery in PostgreSQL's text format.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    | Improve this Doc View Source

    Write(StringBuilder)

    Writes the tsquery in PostgreSQL's text format.

    Declaration
    public void Write(StringBuilder stringBuilder)
    Parameters
    Type Name Description
    StringBuilder stringBuilder

    Operators

    | Improve this Doc View Source

    operator ==(NpgsqlTsQuery?, NpgsqlTsQuery?)

    Indicates whether the values of two specified NpgsqlTsQuery objects are equal.

    Declaration
    public static bool operator ==(NpgsqlTsQuery? left, NpgsqlTsQuery? right)
    Parameters
    Type Name Description
    NpgsqlTsQuery left

    The first object to compare.

    NpgsqlTsQuery right

    The second object to compare.

    Returns
    Type Description
    bool

    true if left and right are equal; otherwise, false.

    | Improve this Doc View Source

    operator !=(NpgsqlTsQuery?, NpgsqlTsQuery?)

    Indicates whether the values of two specified NpgsqlTsQuery objects are not equal.

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

    The first object to compare.

    NpgsqlTsQuery right

    The second object to compare.

    Returns
    Type Description
    bool

    true if left and right are not equal; otherwise, false.

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