Struct ForceInferredParamCache
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
cmdIDbCommand
Fields
Command
The command containing the parameters
public IDbCommand Command
Field Value
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
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
cmdIDbCommandgetterIDbParamInfoGetter
Returns
Type Parameters
T
MakeInfoAt(int)
The binding metadata for the parameter at position i.
public readonly DbParamInfo MakeInfoAt(int i)
Parameters
iint
Returns
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
paramNamestringinfoDbParamInfo