Skip to content

Commit 9984b54

Browse files
committed
One more case to check
1 parent e240ea4 commit 9984b54

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/NHibernate.Test/NHSpecificTest/GH3176/Entity.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ public class Entity
44
public virtual int Id { get; set; }
55
public virtual string Name { get; set; }
66
public virtual Component Component { get; set; }
7+
public virtual int Version { get; set; }
78
}
89

910
public class Component

src/NHibernate.Test/NHSpecificTest/GH3176/FixtureByCode.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88

99
namespace NHibernate.Test.NHSpecificTest.GH3176
1010
{
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)]
1415
public class ByCodeFixture : TestCaseMappingByCode
1516
{
16-
public ByCodeFixture(string cacheStrategy)
17+
private readonly bool _versioned;
18+
19+
public ByCodeFixture(string cacheStrategy, bool versioned)
1720
{
21+
_versioned = versioned;
1822
CacheConcurrencyStrategy = cacheStrategy;
1923
}
2024

@@ -37,6 +41,8 @@ protected override HbmMapping GetMappings()
3741
m.Property(x => x.Field);
3842
m.Lazy(true);
3943
});
44+
if (_versioned)
45+
rc.Version(x => x.Version, m => { });
4046
});
4147

4248
return mapper.CompileMappingForAllExplicitlyAddedEntities();

0 commit comments

Comments
 (0)