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
    Implements
    IEquatable<NpgsqlTsQuery>
    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: NpgsqlTypes
    Assembly: Npgsql.dll
    Syntax
    public abstract class NpgsqlTsQuery : IEquatable<NpgsqlTsQuery>

    Constructors

    NpgsqlTsQuery(NpgsqlTsQuery.NodeKind)

    Constructs an NpgsqlTsQuery.

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

    Properties

    Kind

    Node kind

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

    Methods

    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
    Boolean

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

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    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

    ToString()

    Writes the tsquery in PostgreSQL's text format.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Write(StringBuilder)

    Writes the tsquery in PostgreSQL's text format.

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

    Operators

    Equality(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
    Boolean

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

    Inequality(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
    Boolean

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

    Implements

    System.IEquatable<T>
    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team