Table of Contents

Class AtTimeZoneExpression

Namespace
Microsoft.EntityFrameworkCore.Query.SqlExpressions
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

An expression that represents an AT TIME ZONE operation in a SQL tree.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class AtTimeZoneExpression : SqlExpression, IPrintableExpression
Inheritance
AtTimeZoneExpression
Implements
IPrintableExpression
Inherited Members

Constructors

AtTimeZoneExpression(SqlExpression, SqlExpression, Type, RelationalTypeMapping?)

Creates a new instance of the AtTimeZoneExpression class.

public AtTimeZoneExpression(SqlExpression operand, SqlExpression timeZone, Type type, RelationalTypeMapping? typeMapping)

Parameters

operand SqlExpression

The operand on which to perform the time zone conversion.

timeZone SqlExpression

The time zone to convert to.

type Type

The Type of the expression.

typeMapping RelationalTypeMapping

The RelationalTypeMapping associated with the expression.

Properties

Operand

The input operand on which to apply the time zone.

public virtual SqlExpression Operand { get; }

Property Value

SqlExpression

TimeZone

The time zone to be applied.

public virtual SqlExpression TimeZone { get; }

Property Value

SqlExpression

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Print(ExpressionPrinter)

protected override void Print(ExpressionPrinter expressionPrinter)

Parameters

expressionPrinter ExpressionPrinter

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.

public virtual AtTimeZoneExpression Update(SqlExpression operand, SqlExpression timeZone)

Parameters

operand SqlExpression

The Operand property of the result.

timeZone SqlExpression

The TimeZone property of the result.

Returns

AtTimeZoneExpression

This expression if no children changed, or an expression with the updated children.

VisitChildren(ExpressionVisitor)

protected override Expression VisitChildren(ExpressionVisitor visitor)

Parameters

visitor ExpressionVisitor

Returns

Expression