Class NpgsqlTsQuery
Represents a PostgreSQL tsquery. This is the base class for the lexeme, not, or, and, and "followed by" nodes.
Inheritance
Implements
Inherited Members
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
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
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
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 |
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 |