File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
src/NHibernate.Test/NHSpecificTest/NH3512 Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 3
3
class Person
4
4
{
5
5
public virtual int Id { get ; protected set ; }
6
- public virtual byte [ ] Version { get ; set ; }
6
+ public virtual int Version { get ; set ; }
7
7
public virtual string Name { get ; set ; }
8
8
public virtual int Age { get ; set ; }
9
9
}
Original file line number Diff line number Diff line change 3
3
4
4
namespace NHibernate . Test . NHSpecificTest . NH3512
5
5
{
6
-
7
-
8
6
public class Fixture : BugTestCase
9
7
{
10
8
private int _id ;
@@ -47,7 +45,7 @@ protected void UpdateBaseEntity()
47
45
48
46
transaction . Commit ( ) ;
49
47
50
- CollectionAssert . AreNotEqual ( before , person . Version ) ;
48
+ Assert . That ( person . Version , Is . GreaterThan ( before ) ) ;
51
49
}
52
50
}
53
51
@@ -64,7 +62,7 @@ protected void UpdateDerivedEntity()
64
62
65
63
transaction . Commit ( ) ;
66
64
67
- CollectionAssert . AreNotEqual ( before , employee . Version ) ;
65
+ Assert . That ( employee . Version , Is . GreaterThan ( before ) ) ;
68
66
}
69
67
}
70
68
}
Original file line number Diff line number Diff line change 3
3
4
4
<class name =" Person" >
5
5
<id name =" Id" generator =" identity" />
6
- <version name =" Version" generated =" always" unsaved-value =" null" type =" BinaryBlob" >
7
- <column name =" Version" not-null =" false" sql-type =" timestamp" />
8
- </version >
6
+ <version name =" Version" />
9
7
<property name =" Name" />
10
8
<property name =" Age" />
11
9
You can’t perform that action at this time.
0 commit comments