Interface IDbParamCache
How a query keeps, per parameter, the learned strategy for binding it.
public interface IDbParamCache
- Extension Methods
Methods
IsCached(int)
Whether the parameter at ind already has a settled binding strategy.
bool IsCached(int ind)
Parameters
indint
Returns
UpdateCache(int, DbParamInfo)
Pins the binding strategy for the parameter at ind.
bool UpdateCache(int ind, DbParamInfo info)
Parameters
indintinfoDbParamInfo
Returns
UpdateCachedIndexes()
Refreshes the split between settled and unsettled parameters after a round of learning.
void UpdateCachedIndexes()
UpdateSpecialHandlers<T>(T)
Offers infoGetter to the special handlers that have not settled yet, so each can
work out its own binding from the provider's metadata.
bool UpdateSpecialHandlers<T>(T infoGetter) where T : IDbParamInfoGetter
Parameters
infoGetterT
Returns
Type Parameters
T