Table of Contents

Class SimpleParameterInfoExtensions

Namespace
Dapper.SimpleSqlBuilder.Extensions
Assembly
Dapper.SimpleSqlBuilder.dll

An extension class for SimpleParameterInfo.

public static class SimpleParameterInfoExtensions

Inheritance

Methods

DefineParam<T>(T, DbType?, int?, byte?, byte?)

An extension method to create an instance of ISimpleParameterInfo with the specified dbType, size, precision, and scale.

public static ISimpleParameterInfo DefineParam<T>(this T value, DbType? dbType = null, int? size = null, byte? precision = null, byte? scale = null)

Parameters

value T

The parameter value.

dbType DbType?

The parameter DbType.

size int?

The parameter size.

precision byte?

The parameter precision.

scale byte?

The parameter scale.

Returns

ISimpleParameterInfo

An new instance of ISimpleParameterInfo.

Type Parameters

T

The type of the parameter.

Exceptions

ArgumentException

Thrown when called on ISimpleParameterInfo.