Table of Contents

Class SqlGenericConstructorExpression

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

Constructors

SqlGenericConstructorExpression(SqlGenericConstructorExpression)

public SqlGenericConstructorExpression(SqlGenericConstructorExpression basedOn)

Parameters

basedOn SqlGenericConstructorExpression

SqlGenericConstructorExpression(CreateType, Type, ReadOnlyCollection<Parameter>?, ReadOnlyCollection<Assignment>?, MappingSchema?, Expression?)

public SqlGenericConstructorExpression(SqlGenericConstructorExpression.CreateType createType, Type objectType, ReadOnlyCollection<SqlGenericConstructorExpression.Parameter>? parameters, ReadOnlyCollection<SqlGenericConstructorExpression.Assignment>? assignments, MappingSchema? mappingSchema, Expression? constructionRoot)

Parameters

createType SqlGenericConstructorExpression.CreateType
objectType Type
parameters ReadOnlyCollection<SqlGenericConstructorExpression.Parameter>
assignments ReadOnlyCollection<SqlGenericConstructorExpression.Assignment>
mappingSchema MappingSchema
constructionRoot Expression

SqlGenericConstructorExpression(MemberInitExpression)

public SqlGenericConstructorExpression(MemberInitExpression memberInitExpression)

Parameters

memberInitExpression MemberInitExpression

SqlGenericConstructorExpression(MethodCallExpression)

public SqlGenericConstructorExpression(MethodCallExpression methodCall)

Parameters

methodCall MethodCallExpression

SqlGenericConstructorExpression(NewExpression)

public SqlGenericConstructorExpression(NewExpression newExpression)

Parameters

newExpression NewExpression

SqlGenericConstructorExpression(Type, ReadOnlyCollection<MemberBinding>)

public SqlGenericConstructorExpression(Type objectType, ReadOnlyCollection<MemberBinding> bindings)

Parameters

objectType Type
bindings ReadOnlyCollection<MemberBinding>

Properties

Assignments

public ReadOnlyCollection<SqlGenericConstructorExpression.Assignment> Assignments { get; }

Property Value

ReadOnlyCollection<SqlGenericConstructorExpression.Assignment>

ConstructType

public SqlGenericConstructorExpression.CreateType ConstructType { get; }

Property Value

SqlGenericConstructorExpression.CreateType

ConstructionRoot

public Expression? ConstructionRoot { get; }

Property Value

Expression

Constructor

public ConstructorInfo? Constructor { get; }

Property Value

ConstructorInfo

ConstructorMethod

public MethodInfo? ConstructorMethod { get; }

Property Value

MethodInfo

MappingSchema

public MappingSchema? MappingSchema { get; }

Property Value

MappingSchema

NewExpression

public Expression? NewExpression { get; }

Property Value

Expression

NodeType

Gets the node type of this Expression.

public override ExpressionType NodeType { get; }

Property Value

ExpressionType

One of the ExpressionType values.

ObjectType

public Type ObjectType { get; }

Property Value

Type

Parameters

public ReadOnlyCollection<SqlGenericConstructorExpression.Parameter> Parameters { get; }

Property Value

ReadOnlyCollection<SqlGenericConstructorExpression.Parameter>

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.

AppendAssignment(Assignment)

public SqlGenericConstructorExpression AppendAssignment(SqlGenericConstructorExpression.Assignment assignment)

Parameters

assignment SqlGenericConstructorExpression.Assignment

Returns

SqlGenericConstructorExpression

Equals(SqlGenericConstructorExpression?)

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

public bool Equals(SqlGenericConstructorExpression? other)

Parameters

other SqlGenericConstructorExpression

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.

FindMember(IReadOnlyCollection<MemberAccessor>, ParameterInfo)

public static MemberInfo? FindMember(IReadOnlyCollection<MemberAccessor> members, ParameterInfo parameter)

Parameters

members IReadOnlyCollection<MemberAccessor>
parameter ParameterInfo

Returns

MemberInfo

FindMember(Type, ParameterInfo)

public static MemberInfo? FindMember(Type inType, ParameterInfo parameter)

Parameters

inType Type
parameter ParameterInfo

Returns

MemberInfo

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ReplaceAssignments(ReadOnlyCollection<Assignment>)

public SqlGenericConstructorExpression ReplaceAssignments(ReadOnlyCollection<SqlGenericConstructorExpression.Assignment> assignment)

Parameters

assignment ReadOnlyCollection<SqlGenericConstructorExpression.Assignment>

Returns

SqlGenericConstructorExpression

ReplaceParameters(ReadOnlyCollection<Parameter>)

public SqlGenericConstructorExpression ReplaceParameters(ReadOnlyCollection<SqlGenericConstructorExpression.Parameter> parameters)

Parameters

parameters ReadOnlyCollection<SqlGenericConstructorExpression.Parameter>

Returns

SqlGenericConstructorExpression

ToString()

Returns a textual representation of the Expression.

public override string ToString()

Returns

string

A textual representation of the Expression.

WithConstructionRoot(Expression)

public SqlGenericConstructorExpression WithConstructionRoot(Expression constructionRoot)

Parameters

constructionRoot Expression

Returns

SqlGenericConstructorExpression

WithMappingSchema(MappingSchema?)

public SqlGenericConstructorExpression WithMappingSchema(MappingSchema? mappingSchema)

Parameters

mappingSchema MappingSchema

Returns

SqlGenericConstructorExpression

Operators

operator ==(SqlGenericConstructorExpression?, SqlGenericConstructorExpression?)

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

Parameters

left SqlGenericConstructorExpression
right SqlGenericConstructorExpression

Returns

bool

operator !=(SqlGenericConstructorExpression?, SqlGenericConstructorExpression?)

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

Parameters

left SqlGenericConstructorExpression
right SqlGenericConstructorExpression

Returns

bool