Search Results for

    Show / Hide Table of Contents

    Class PostgresRegexMatchExpression

    Represents a PostgreSQL regular expression match expression.

    Inheritance
    object
    PostgresRegexMatchExpression
    Implements
    IEquatable<><PostgresRegexMatchExpression>
    Namespace: Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal
    Assembly: Npgsql.EntityFrameworkCore.PostgreSQL.dll
    Syntax
    public class PostgresRegexMatchExpression : SqlExpression, IEquatable<PostgresRegexMatchExpression>

    Constructors

    | Improve this Doc View Source

    PostgresRegexMatchExpression(SqlExpression, SqlExpression, RegexOptions, RelationalTypeMapping?)

    Constructs a PostgresRegexMatchExpression.

    Declaration
    public PostgresRegexMatchExpression(SqlExpression match, SqlExpression pattern, RegexOptions options, RelationalTypeMapping? typeMapping)
    Parameters
    Type Name Description
    SqlExpression match

    The expression to match.

    SqlExpression pattern

    The pattern to match.

    RegexOptions options

    The options for regular expression evaluation.

    RelationalTypeMapping? typeMapping

    The type mapping for the expression.

    Properties

    | Improve this Doc View Source

    Match

    The match expression.

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

    Options

    The options for regular expression evaluation.

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

    Pattern

    The pattern to match.

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

    Type

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

    Methods

    | Improve this Doc View Source

    Equals(PostgresRegexMatchExpression?)

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

    Equals(object?)

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

    GetHashCode()

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

    Print(ExpressionPrinter)

    Declaration
    protected override void Print(ExpressionPrinter expressionPrinter)
    Parameters
    Type Name Description
    ExpressionPrinter expressionPrinter
    | Improve this Doc View Source

    ToString()

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

    Update(SqlExpression, SqlExpression)

    Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

    Declaration
    public virtual PostgresRegexMatchExpression Update(SqlExpression match, SqlExpression pattern)
    Parameters
    Type Name Description
    SqlExpression match
    SqlExpression pattern
    Returns
    Type Description
    PostgresRegexMatchExpression
    | Improve this Doc View Source

    VisitChildren(ExpressionVisitor)

    Declaration
    protected override Expression VisitChildren(ExpressionVisitor visitor)
    Parameters
    Type Name Description
    ExpressionVisitor visitor
    Returns
    Type Description
    Expression

    Implements

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