Table of Contents

Class BulkCopyReader.Parameter

Namespace
LinqToDB.DataProvider
Assembly
linq2db.dll
public class BulkCopyReader.Parameter : DbParameter, IDbDataParameter, IDataParameter
Inheritance
BulkCopyReader.Parameter
Implements
Inherited Members
Extension Methods

Properties

DbType

Gets or sets the DbType of the parameter.

public override DbType DbType { get; set; }

Property Value

DbType

One of the DbType values. The default is String.

Exceptions

ArgumentException

The property is not set to a valid DbType.

Direction

Gets or sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.

public override ParameterDirection Direction { get; set; }

Property Value

ParameterDirection

One of the ParameterDirection values. The default is Input.

Exceptions

ArgumentException

The property is not set to one of the valid ParameterDirection values.

IsNullable

Gets or sets a value that indicates whether the parameter accepts null values.

public override bool IsNullable { get; set; }

Property Value

bool

true if null values are accepted; otherwise false. The default is false.

ParameterName

Gets or sets the name of the DbParameter.

public override string ParameterName { get; set; }

Property Value

string

The name of the DbParameter. The default is an empty string ("").

Size

Gets or sets the maximum size, in bytes, of the data within the column.

public override int Size { get; set; }

Property Value

int

The maximum size, in bytes, of the data within the column. The default value is inferred from the parameter value.

SourceColumn

Gets or sets the name of the source column mapped to the DataSet and used for loading or returning the Value.

public override string SourceColumn { get; set; }

Property Value

string

The name of the source column mapped to the DataSet. The default is an empty string.

SourceColumnNullMapping

Sets or gets a value which indicates whether the source column is nullable. This allows DbCommandBuilder to correctly generate Update statements for nullable columns.

public override bool SourceColumnNullMapping { get; set; }

Property Value

bool

true if the source column is nullable; false if it is not.

SourceVersion

Gets or sets the DataRowVersion to use when you load Value.

public override DataRowVersion SourceVersion { get; set; }

Property Value

DataRowVersion

One of the DataRowVersion values. The default is Current.

Exceptions

ArgumentException

The property is not set to one of the DataRowVersion values.

Value

Gets or sets the value of the parameter.

public override object? Value { get; set; }

Property Value

object

An object that is the value of the parameter. The default value is null.

Methods

ResetDbType()

Resets the DbType property to its original settings.

public override void ResetDbType()