Table of Contents

Class SqlParameter

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

Constructors

SqlParameter(DbDataType, string?, object?)

public SqlParameter(DbDataType type, string? name, object? value)

Parameters

type DbDataType
name string
value object

Properties

CanBeNull

public bool CanBeNull { get; }

Property Value

bool

ElementType

public QueryElementType ElementType { get; }

Property Value

QueryElementType

IsQueryParameter

public bool IsQueryParameter { get; set; }

Property Value

bool

Name

public string? Name { get; set; }

Property Value

string

Precedence

public int Precedence { get; }

Property Value

int

Type

public DbDataType Type { get; set; }

Property Value

DbDataType

Value

public object? Value { get; }

Property Value

object

ValueConverter

public Func<object?, object?>? ValueConverter { get; set; }

Property Value

Func<object, object>

Methods

CorrectParameterValue(object?)

public object? CorrectParameterValue(object? rawValue)

Parameters

rawValue object

Returns

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()

public override int GetHashCode()

Returns

int