internal void SetsCache(QueryCacheType queryCacheType) { var cacheKey = new QueryCacheKey(queryCacheType, new DummySqlBuilder(), typeof(Foo)); DommelMapper.QueryCache[cacheKey] = "blah"; Assert.Equal("blah", DommelMapper.QueryCache[cacheKey]); }
public QueryCache(QueryCacheType cacheType, IDbConnection connection, MemberInfo memberInfo) { ConnectionType = connection.GetType(); CacheType = cacheType; MemberInfo = memberInfo; }
public QueryCacheKey(QueryCacheType cacheType, ISqlBuilder sqlBuilder, MemberInfo memberInfo) { SqlBuilderType = sqlBuilder.GetType(); CacheType = cacheType; MemberInfo = memberInfo; }
public QueryCacheKey(QueryCacheType cacheType, IDbConnection connection, Type type) { ConnectionType = connection.GetType(); CacheType = cacheType; MemberInfo = type.GetTypeInfo(); }
public QueryCacheKey(QueryCacheType cacheType, ISqlBuilder sqlBuilder, Type type) { SqlBuilderType = sqlBuilder.GetType(); CacheType = cacheType; MemberInfo = type.GetTypeInfo(); }