Table of Contents

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

name string

The parameter name.

dbDataType DbDataType

The database type of the parameter.

value object

The parameter value.

direction ParameterDirection?

The parameter direction, or null for the provider default.

isDbDataTypeExplicit bool

Whether the database type was explicitly specified.

Properties

DbDataType

Gets the database type of the parameter.

public DbDataType DbDataType { get; }

Property Value

DbDataType

Direction

Gets the direction of the parameter.

public ParameterDirection? Direction { get; }

Property Value

ParameterDirection?

IsDbDataTypeExplicit

Gets a value indicating whether the database type is explicitly specified.

public bool IsDbDataTypeExplicit { get; }

Property Value

bool

Name

Gets the name of the parameter.

public string Name { get; }

Property Value

string

Value

Gets the value of the parameter.

public object? Value { get; }

Property Value

object