Table of Contents

Class SqlValue

Namespace
LinqToDB.SqlQuery
Assembly
linq2db.dll
public class SqlValue : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable
Inheritance
SqlValue
Implements
Extension Methods

Constructors

SqlValue(DbDataType, object?)

public SqlValue(DbDataType valueType, object? value)

Parameters

valueType DbDataType
value object

SqlValue(object)

public SqlValue(object value)

Parameters

value object

SqlValue(Type, object?)

public SqlValue(Type systemType, object? value)

Parameters

systemType Type
value object

Properties

CanBeNull

public bool CanBeNull { get; }

Property Value

bool

ElementType

public QueryElementType ElementType { get; }

Property Value

QueryElementType

Precedence

public int Precedence { get; }

Property Value

int

Value

Provider specific value

public object? Value { get; }

Property Value

object

ValueType

public DbDataType ValueType { get; set; }

Property Value

DbDataType

Methods

Deconstruct(out object?)

public void Deconstruct(out object? value)

Parameters

value object

Equals(ISqlExpression, Func<ISqlExpression, ISqlExpression, bool>)

public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)

Parameters

other ISqlExpression
comparer Func<ISqlExpression, ISqlExpression, bool>

Returns

bool

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current object.