File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
NHibernate.Test/IdGen/NativeGuid Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ protected override IList Mappings
20
20
public void Crd ( )
21
21
{
22
22
object savedId ;
23
- using ( ISession s = OpenSession ( ) )
24
- using ( ITransaction tx = s . BeginTransaction ( ) )
23
+ using ( var s = OpenSession ( ) )
24
+ using ( var tx = s . BeginTransaction ( ) )
25
25
{
26
26
var nativeGuidPoid = new NativeGuidPoid ( ) ;
27
27
savedId = s . Save ( nativeGuidPoid ) ;
Original file line number Diff line number Diff line change @@ -106,6 +106,11 @@ public override string IdentityColumnString
106
106
get { return "IDENTITY NOT NULL" ; }
107
107
}
108
108
109
+ public override string SelectGUIDString
110
+ {
111
+ get { return "select newid()" ; }
112
+ }
113
+
109
114
public override bool SupportsLimit
110
115
{
111
116
get { return true ; }
You can’t perform that action at this time.
0 commit comments