Table of Contents

Class SqlQueryRootExpression

Namespace
LinqToDB.Internal.Expressions
Assembly
linq2db.dll
public class SqlQueryRootExpression : Expression, IEquatable<SqlQueryRootExpression>
Inheritance
object
SqlQueryRootExpression
Implements
Inherited Members
Extension Methods

Constructors

SqlQueryRootExpression(MappingSchema, Type)

public SqlQueryRootExpression(MappingSchema mappingSchema, Type contextType)

Parameters

mappingSchema MappingSchema
contextType Type

Properties

ContextType

public Type ContextType { get; }

Property Value

Type

MappingSchema

public MappingSchema MappingSchema { get; }

Property Value

MappingSchema

NodeType

Gets the node type of this Expression.

public override ExpressionType NodeType { get; }

Property Value

ExpressionType

One of the ExpressionType values.

Type

Gets the static type of the expression that this Expression represents.

public override Type Type { get; }

Property Value

Type

The Type that represents the static type of the expression.

Methods

Accept(ExpressionVisitor)

Dispatches to the specific visit method for this node type. For example, MethodCallExpression calls the VisitMethodCall(MethodCallExpression).

protected override Expression Accept(ExpressionVisitor visitor)

Parameters

visitor ExpressionVisitor

The visitor to visit this node with.

Returns

Expression

The result of visiting this node.

Create(IDataContext)

public static SqlQueryRootExpression Create(IDataContext dataContext)

Parameters

dataContext IDataContext

Returns

SqlQueryRootExpression

Create(IDataContext, Type)

public static SqlQueryRootExpression Create(IDataContext dataContext, Type contextType)

Parameters

dataContext IDataContext
contextType Type

Returns

SqlQueryRootExpression

Create(MappingSchema, Type)

public static SqlQueryRootExpression Create(MappingSchema mappingSchema, Type contextType)

Parameters

mappingSchema MappingSchema
contextType Type

Returns

SqlQueryRootExpression

Equals(SqlQueryRootExpression?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(SqlQueryRootExpression? other)

Parameters

other SqlQueryRootExpression

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a textual representation of the Expression.

public override string ToString()

Returns

string

A textual representation of the Expression.

VisitChildren(ExpressionVisitor)

Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.

protected override Expression VisitChildren(ExpressionVisitor visitor)

Parameters

visitor ExpressionVisitor

An instance of Func<T, TResult>.

Returns

Expression

The expression being visited, or an expression which should replace it in the tree.

Operators

operator ==(SqlQueryRootExpression?, SqlQueryRootExpression?)

public static bool operator ==(SqlQueryRootExpression? left, SqlQueryRootExpression? right)

Parameters

left SqlQueryRootExpression
right SqlQueryRootExpression

Returns

bool

operator !=(SqlQueryRootExpression?, SqlQueryRootExpression?)

public static bool operator !=(SqlQueryRootExpression? left, SqlQueryRootExpression? right)

Parameters

left SqlQueryRootExpression
right SqlQueryRootExpression

Returns

bool