public static void EnsureValue <TKey, TValue, TTypedValue>(this IDictionary <TKey, TValue> dic, TKey key, out TTypedValue value) { if (!dic.Value(key, out value)) { throw new SmartSqlException($"Can not find Parameter:{key}!"); } }