File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
NHibernate/Cfg/Loquacious
NHibernate.Test/CfgTest/Loquacious Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public void CompleteConfiguration()
29
29
. Through < HashtableCacheProvider > ( )
30
30
. PrefixingRegionsWith ( "xyz" )
31
31
. Queries
32
- . Through < StandardQueryCache > ( )
32
+ . Through < StandardQueryCacheFactory > ( )
33
33
. UsingMinimalPuts ( )
34
34
. WithDefaultExpiration ( 15 )
35
35
. GeneratingCollections
@@ -69,7 +69,7 @@ public void CompleteConfiguration()
69
69
Assert . That ( cfg . Properties [ Environment . SessionFactoryName ] , Is . EqualTo ( "SomeName" ) ) ;
70
70
Assert . That ( cfg . Properties [ Environment . CacheProvider ] , Is . EqualTo ( typeof ( HashtableCacheProvider ) . AssemblyQualifiedName ) ) ;
71
71
Assert . That ( cfg . Properties [ Environment . CacheRegionPrefix ] , Is . EqualTo ( "xyz" ) ) ;
72
- Assert . That ( cfg . Properties [ Environment . QueryCacheFactory ] , Is . EqualTo ( typeof ( StandardQueryCache ) . AssemblyQualifiedName ) ) ;
72
+ Assert . That ( cfg . Properties [ Environment . QueryCacheFactory ] , Is . EqualTo ( typeof ( StandardQueryCacheFactory ) . AssemblyQualifiedName ) ) ;
73
73
Assert . That ( cfg . Properties [ Environment . UseMinimalPuts ] , Is . EqualTo ( "true" ) ) ;
74
74
Assert . That ( cfg . Properties [ Environment . CacheDefaultExpiration ] , Is . EqualTo ( "15" ) ) ;
75
75
Assert . That ( cfg . Properties [ Environment . CollectionTypeFactoryClass ] , Is . EqualTo ( typeof ( DefaultCollectionTypeFactory ) . AssemblyQualifiedName ) ) ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public void FullConfiguration()
27
27
c . DefaultExpiration = 15 ;
28
28
c . RegionsPrefix = "xyz" ;
29
29
c . Provider < HashtableCacheProvider > ( ) ;
30
- c . QueryCache < StandardQueryCache > ( ) ;
30
+ c . QueryCache < StandardQueryCacheFactory > ( ) ;
31
31
} ) ;
32
32
configure . CollectionTypeFactory < DefaultCollectionTypeFactory > ( ) ;
33
33
configure . HqlQueryTranslator < ASTQueryTranslatorFactory > ( ) ;
@@ -69,7 +69,7 @@ public void FullConfiguration()
69
69
Is . EqualTo ( typeof ( HashtableCacheProvider ) . AssemblyQualifiedName ) ) ;
70
70
Assert . That ( configure . Properties [ Environment . CacheRegionPrefix ] , Is . EqualTo ( "xyz" ) ) ;
71
71
Assert . That ( configure . Properties [ Environment . QueryCacheFactory ] ,
72
- Is . EqualTo ( typeof ( StandardQueryCache ) . AssemblyQualifiedName ) ) ;
72
+ Is . EqualTo ( typeof ( StandardQueryCacheFactory ) . AssemblyQualifiedName ) ) ;
73
73
Assert . That ( configure . Properties [ Environment . UseMinimalPuts ] , Is . EqualTo ( "true" ) ) ;
74
74
Assert . That ( configure . Properties [ Environment . CacheDefaultExpiration ] , Is . EqualTo ( "15" ) ) ;
75
75
Assert . That ( configure . Properties [ Environment . CollectionTypeFactoryClass ] ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public void Provider<TProvider>() where TProvider : ICacheProvider
39
39
cfg . SetProperty ( Environment . CacheProvider , typeof ( TProvider ) . AssemblyQualifiedName ) ;
40
40
}
41
41
42
- public void QueryCache < TFactory > ( ) where TFactory : IQueryCache
42
+ public void QueryCache < TFactory > ( ) where TFactory : IQueryCacheFactory
43
43
{
44
44
UseSecondLevelCache = true ;
45
45
UseQueryCache = true ;
@@ -111,7 +111,7 @@ public QueryCacheConfiguration(CacheConfiguration cc)
111
111
112
112
#region Implementation of IQueryCacheConfiguration
113
113
114
- public ICacheConfiguration Through < TFactory > ( ) where TFactory : IQueryCache
114
+ public ICacheConfiguration Through < TFactory > ( ) where TFactory : IQueryCacheFactory
115
115
{
116
116
cc . Configuration . SetProperty ( Environment . UseSecondLevelCache , "true" ) ;
117
117
cc . Configuration . SetProperty ( Environment . UseQueryCache , "true" ) ;
@@ -121,4 +121,4 @@ public ICacheConfiguration Through<TFactory>() where TFactory : IQueryCache
121
121
122
122
#endregion
123
123
}
124
- }
124
+ }
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ public interface ICacheConfigurationProperties
17
17
string RegionsPrefix { set ; }
18
18
int DefaultExpiration { set ; }
19
19
void Provider < TProvider > ( ) where TProvider : ICacheProvider ;
20
- void QueryCache < TFactory > ( ) where TFactory : IQueryCache ;
20
+ void QueryCache < TFactory > ( ) where TFactory : IQueryCacheFactory ;
21
21
}
22
- }
22
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ namespace NHibernate.Cfg.Loquacious
4
4
{
5
5
public interface IQueryCacheConfiguration
6
6
{
7
- ICacheConfiguration Through < TFactory > ( ) where TFactory : IQueryCache ;
7
+ ICacheConfiguration Through < TFactory > ( ) where TFactory : IQueryCacheFactory ;
8
8
}
9
- }
9
+ }
You can’t perform that action at this time.
0 commit comments