File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
src/NHibernate.Test/NHSpecificTest/GH3176 Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ public class Entity
4
4
public virtual int Id { get ; set ; }
5
5
public virtual string Name { get ; set ; }
6
6
public virtual Component Component { get ; set ; }
7
+ public virtual int Version { get ; set ; }
7
8
}
8
9
9
10
public class Component
Original file line number Diff line number Diff line change 8
8
9
9
namespace NHibernate . Test . NHSpecificTest . GH3176
10
10
{
11
- [ TestFixture ( CacheFactory . ReadOnly ) ]
12
- [ TestFixture ( CacheFactory . NonstrictReadWrite ) ]
13
- [ TestFixture ( CacheFactory . ReadWrite ) ]
11
+ [ TestFixture ( CacheFactory . ReadOnly , false ) ]
12
+ [ TestFixture ( CacheFactory . NonstrictReadWrite , false ) ]
13
+ [ TestFixture ( CacheFactory . ReadWrite , false ) ]
14
+ [ TestFixture ( CacheFactory . ReadWrite , true ) ]
14
15
public class ByCodeFixture : TestCaseMappingByCode
15
16
{
16
- public ByCodeFixture ( string cacheStrategy )
17
+ private readonly bool _versioned ;
18
+
19
+ public ByCodeFixture ( string cacheStrategy , bool versioned )
17
20
{
21
+ _versioned = versioned ;
18
22
CacheConcurrencyStrategy = cacheStrategy ;
19
23
}
20
24
@@ -37,6 +41,8 @@ protected override HbmMapping GetMappings()
37
41
m . Property ( x => x . Field ) ;
38
42
m . Lazy ( true ) ;
39
43
} ) ;
44
+ if ( _versioned )
45
+ rc . Version ( x => x . Version , m => { } ) ;
40
46
} ) ;
41
47
42
48
return mapper . CompileMappingForAllExplicitlyAddedEntities ( ) ;
You can’t perform that action at this time.
0 commit comments