Class SqlGenericConstructorExpression
- Namespace
- LinqToDB.Internal.Expressions
- Assembly
- linq2db.dll
public sealed class SqlGenericConstructorExpression : Expression, IEquatable<SqlGenericConstructorExpression>
- Inheritance
-
objectSqlGenericConstructorExpression
- Implements
- Inherited Members
- Extension Methods
Constructors
SqlGenericConstructorExpression(SqlGenericConstructorExpression)
public SqlGenericConstructorExpression(SqlGenericConstructorExpression basedOn)
Parameters
basedOnSqlGenericConstructorExpression
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
createTypeSqlGenericConstructorExpression.CreateTypeobjectTypeTypeparametersReadOnlyCollection<SqlGenericConstructorExpression.Parameter>assignmentsReadOnlyCollection<SqlGenericConstructorExpression.Assignment>mappingSchemaMappingSchemaconstructionRootExpression
SqlGenericConstructorExpression(MemberInitExpression)
public SqlGenericConstructorExpression(MemberInitExpression memberInitExpression)
Parameters
memberInitExpressionMemberInitExpression
SqlGenericConstructorExpression(MethodCallExpression)
public SqlGenericConstructorExpression(MethodCallExpression methodCall)
Parameters
methodCallMethodCallExpression
SqlGenericConstructorExpression(NewExpression)
public SqlGenericConstructorExpression(NewExpression newExpression)
Parameters
newExpressionNewExpression
SqlGenericConstructorExpression(Type, ReadOnlyCollection<MemberBinding>)
public SqlGenericConstructorExpression(Type objectType, ReadOnlyCollection<MemberBinding> bindings)
Parameters
objectTypeTypebindingsReadOnlyCollection<MemberBinding>
Properties
Assignments
public ReadOnlyCollection<SqlGenericConstructorExpression.Assignment> Assignments { get; }
Property Value
ConstructType
public SqlGenericConstructorExpression.CreateType ConstructType { get; }
Property Value
ConstructionRoot
public Expression? ConstructionRoot { get; }
Property Value
Constructor
public ConstructorInfo? Constructor { get; }
Property Value
ConstructorMethod
public MethodInfo? ConstructorMethod { get; }
Property Value
MappingSchema
public MappingSchema? MappingSchema { get; }
Property Value
NewExpression
public Expression? NewExpression { get; }
Property Value
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
Parameters
public ReadOnlyCollection<SqlGenericConstructorExpression.Parameter> Parameters { get; }
Property Value
Type
Gets the static type of the expression that this Expression represents.
public override Type Type { get; }
Property Value
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
visitorExpressionVisitorThe visitor to visit this node with.
Returns
- Expression
The result of visiting this node.
AppendAssignment(Assignment)
public SqlGenericConstructorExpression AppendAssignment(SqlGenericConstructorExpression.Assignment assignment)
Parameters
assignmentSqlGenericConstructorExpression.Assignment
Returns
Equals(SqlGenericConstructorExpression?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SqlGenericConstructorExpression? other)
Parameters
otherSqlGenericConstructorExpressionAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe 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
membersIReadOnlyCollection<MemberAccessor>parameterParameterInfo
Returns
FindMember(Type, ParameterInfo)
public static MemberInfo? FindMember(Type inType, ParameterInfo parameter)
Parameters
inTypeTypeparameterParameterInfo
Returns
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
Returns
ReplaceParameters(ReadOnlyCollection<Parameter>)
public SqlGenericConstructorExpression ReplaceParameters(ReadOnlyCollection<SqlGenericConstructorExpression.Parameter> parameters)
Parameters
Returns
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
constructionRootExpression
Returns
WithMappingSchema(MappingSchema?)
public SqlGenericConstructorExpression WithMappingSchema(MappingSchema? mappingSchema)
Parameters
mappingSchemaMappingSchema
Returns
Operators
operator ==(SqlGenericConstructorExpression?, SqlGenericConstructorExpression?)
public static bool operator ==(SqlGenericConstructorExpression? left, SqlGenericConstructorExpression? right)
Parameters
Returns
operator !=(SqlGenericConstructorExpression?, SqlGenericConstructorExpression?)
public static bool operator !=(SqlGenericConstructorExpression? left, SqlGenericConstructorExpression? right)