Class SqlParameter
public sealed class SqlParameter : SqlExpressionBase, ISqlExpression, IQueryElement, IEquatable<ISqlExpression>
- Inheritance
-
SqlParameter
- Implements
- Inherited Members
- Extension Methods
Constructors
SqlParameter(DbDataType, string?, object?)
public SqlParameter(DbDataType type, string? name, object? value)
Parameters
typeDbDataTypenamestringvalueobject
Properties
AccessorId
public int? AccessorId { get; }
Property Value
- int?
ElementType
AST node type.
public override QueryElementType ElementType { get; }
Property Value
IsQueryParameter
public bool IsQueryParameter { get; set; }
Property Value
Name
public string? Name { get; set; }
Property Value
NeedsCast
Enable parameter wrapping with type-cast. Ignored when IsQueryParameter is false.
public bool NeedsCast { get; set; }
Property Value
Precedence
public override int Precedence { get; }
Property Value
SystemType
public override Type SystemType { get; }
Property Value
Type
public DbDataType Type { get; set; }
Property Value
Value
public object? Value { get; }
Property Value
ValueConverter
public Func<object?, object?>? ValueConverter { get; set; }
Property Value
Methods
CanBeNullable(NullabilityContext)
public override bool CanBeNullable(NullabilityContext nullability)
Parameters
nullabilityNullabilityContext
Returns
CorrectParameterValue(object?)
public object? CorrectParameterValue(object? rawValue)
Parameters
rawValueobject
Returns
Equals(ISqlExpression, Func<ISqlExpression, ISqlExpression, bool>)
public override bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
Parameters
otherISqlExpressioncomparerFunc<ISqlExpression, ISqlExpression, bool>
Returns
GetElementHashCode()
public override int GetElementHashCode()
Returns
ToString(QueryElementTextWriter)
Generates debug text representation of AST node.
public override QueryElementTextWriter ToString(QueryElementTextWriter writer)
Parameters
writerQueryElementTextWriter