Table of Contents

Struct ForceInferredParamCache

Namespace
Rinku.Querying.Defaults
Assembly
Rinku.dll

Pins every parameter to driver inference and marks it settled, so the command stops trying to learn provider metadata. Register it for a command type whose metadata you would rather leave to the driver.

public struct ForceInferredParamCache : IDbParamInfoGetter
Implements
Inherited Members
Extension Methods

Constructors

ForceInferredParamCache(IDbCommand)

Pins every parameter to driver inference and marks it settled, so the command stops trying to learn provider metadata. Register it for a command type whose metadata you would rather leave to the driver.

public ForceInferredParamCache(IDbCommand cmd)

Parameters

cmd IDbCommand

Fields

Command

The command containing the parameters

public IDbCommand Command

Field Value

IDbCommand

Methods

EnumerateParameters()

The command's parameters, as name and position pairs, for learning them all in one pass.

public readonly IEnumerable<KeyValuePair<string, int>> EnumerateParameters()

Returns

IEnumerable<KeyValuePair<string, int>>

GetInfoGetterMaker<T>(IDbCommand, out IDbParamInfoGetter)

A maker that hands back this getter for commands of type T, to register in ParamGetterMakers.

public static bool GetInfoGetterMaker<T>(IDbCommand cmd, out IDbParamInfoGetter getter) where T : IDbCommand

Parameters

cmd IDbCommand
getter IDbParamInfoGetter

Returns

bool

Type Parameters

T

MakeInfoAt(int)

The binding metadata for the parameter at position i.

public readonly DbParamInfo MakeInfoAt(int i)

Parameters

i int

Returns

DbParamInfo

TryGetInfo(string, out DbParamInfo)

Attempts to resolve a DbParamInfo for a specific parameter name by inspecting the current command's parameter collection.

public readonly bool TryGetInfo(string paramName, out DbParamInfo info)

Parameters

paramName string
info DbParamInfo

Returns

bool