Table of Contents

Class SimpleParameterInfo

Namespace
Dapper.SimpleSqlBuilder
Assembly
Dapper.SimpleSqlBuilder.dll

A class that defines a parameter and its properties.

public sealed class SimpleParameterInfo : ISimpleParameterInfo

Inheritance

Implements

Constructors

SimpleParameterInfo(object?, DbType?, int?, byte?, byte?, bool)

Initializes a new instance of the SimpleParameterInfo class.

public SimpleParameterInfo(object? value, DbType? dbType = null, int? size = null, byte? precision = null, byte? scale = null, bool reuse = true)

Parameters

value object?

The parameter value.

dbType DbType?

The parameter DbType.

size int?

The parameter size.

precision byte?

The parameter precision.

scale byte?

The parameter scale.

reuse bool

true to reuse this parameter for every use within the builder; false to create a separate parameter for each use. The default is true.

This setting affects only this parameter. The builder's reuseParameters option continues to govern interpolated values.

Properties

DbType

Gets the parameter DbType.

public DbType? DbType { get; }

Property Value

DbType?

Precision

Gets the parameter precision.

public byte? Precision { get; }

Property Value

byte?

Scale

Gets the parameter scale.

public byte? Scale { get; }

Property Value

byte?

Size

Gets the parameter size.

public int? Size { get; }

Property Value

int?

Value

Gets the parameter value.

public object? Value { get; }

Property Value

object?