Table of Contents

Class CollateExpression

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

An expression that represents a COLLATE 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 CollateExpression : SqlExpression, IPrintableExpression
Inheritance
CollateExpression
Implements
IPrintableExpression
Inherited Members

Constructors

CollateExpression(SqlExpression, string)

Creates a new instance of the CollateExpression class.

public CollateExpression(SqlExpression operand, string collation)

Parameters

operand SqlExpression

An expression on which collation is applied.

collation string

A collation value to use.

Properties

Collation

The collation value to use.

public virtual string Collation { get; }

Property Value

string

Operand

The expression on which collation is applied.

public virtual SqlExpression Operand { 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)

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 CollateExpression Update(SqlExpression operand)

Parameters

operand SqlExpression

The Operand property of the result.

Returns

CollateExpression

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