Class SqlParameter
public class SqlParameter : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable
- Inheritance
-
SqlParameter
- Implements
- Extension Methods
Constructors
SqlParameter(DbDataType, string?, object?)
public SqlParameter(DbDataType type, string? name, object? value)
Parameters
type
DbDataTypename
stringvalue
object
Properties
CanBeNull
public bool CanBeNull { get; }
Property Value
ElementType
public QueryElementType ElementType { get; }
Property Value
IsQueryParameter
public bool IsQueryParameter { get; set; }
Property Value
Name
public string? Name { get; set; }
Property Value
Precedence
public int Precedence { 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
CorrectParameterValue(object?)
public object? CorrectParameterValue(object? rawValue)
Parameters
rawValue
object
Returns
Equals(ISqlExpression, Func<ISqlExpression, ISqlExpression, bool>)
public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
Parameters
other
ISqlExpressioncomparer
Func<ISqlExpression, ISqlExpression, bool>
Returns
GetHashCode()
Serves as a hash function for a particular type.
public override int GetHashCode()