Struct DataProviderParameterContext
- Namespace
- LinqToDB.DataProvider
- Assembly
- linq2db.dll
Provides metadata required by a data provider to create and configure a DbParameter.
public readonly struct DataProviderParameterContext
- Inherited Members
- Extension Methods
Constructors
DataProviderParameterContext(string, DbDataType, object?, ParameterDirection?, bool)
Initializes a new instance of the DataProviderParameterContext struct.
public DataProviderParameterContext(string name, DbDataType dbDataType, object? value, ParameterDirection? direction = null, bool isDbDataTypeExplicit = false)
Parameters
namestringThe parameter name.
dbDataTypeDbDataTypeThe database type of the parameter.
valueobjectThe parameter value.
directionParameterDirection?The parameter direction, or null for the provider default.
isDbDataTypeExplicitboolWhether the database type was explicitly specified.
Properties
DbDataType
Gets the database type of the parameter.
public DbDataType DbDataType { get; }
Property Value
Direction
Gets the direction of the parameter.
public ParameterDirection? Direction { get; }
Property Value
IsDbDataTypeExplicit
Gets a value indicating whether the database type is explicitly specified.
public bool IsDbDataTypeExplicit { get; }
Property Value
Name
Gets the name of the parameter.
public string Name { get; }
Property Value
Value
Gets the value of the parameter.
public object? Value { get; }
Property Value
- object