Exemple #1
0
        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;
 }
Exemple #3
0
 public QueryCacheKey(QueryCacheType cacheType, ISqlBuilder sqlBuilder, MemberInfo memberInfo)
 {
     SqlBuilderType = sqlBuilder.GetType();
     CacheType      = cacheType;
     MemberInfo     = memberInfo;
 }
Exemple #4
0
 public QueryCacheKey(QueryCacheType cacheType, IDbConnection connection, Type type)
 {
     ConnectionType = connection.GetType();
     CacheType      = cacheType;
     MemberInfo     = type.GetTypeInfo();
 }
Exemple #5
0
 public QueryCacheKey(QueryCacheType cacheType, ISqlBuilder sqlBuilder, Type type)
 {
     SqlBuilderType = sqlBuilder.GetType();
     CacheType      = cacheType;
     MemberInfo     = type.GetTypeInfo();
 }