Class NpgsqlTsQuery
Represents a PostgreSQL tsquery. This is the base class for the lexeme, not, or, and, and "followed by" nodes.
Inheritance
Namespace: NpgsqlTypes
Assembly: Npgsql.dll
Syntax
public abstract class NpgsqlTsQuery : IEquatable<NpgsqlTsQuery>
Constructors
| Improve this Doc View SourceNpgsqlTsQuery(NodeKind)
Constructs an NpgsqlTsQuery.
Declaration
protected NpgsqlTsQuery(NpgsqlTsQuery.NodeKind kind)
Parameters
Type | Name | Description |
---|---|---|
NpgsqlTsQuery.NodeKind | kind |
Properties
| Improve this Doc View SourceKind
Node kind
Declaration
public NpgsqlTsQuery.NodeKind Kind { get; }
Property Value
Type | Description |
---|---|
NpgsqlTsQuery.NodeKind |
Methods
| Improve this Doc View SourceEquals(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. |
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object? | obj |
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
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 |
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 Sourceoperator ==(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 |
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 |