Skip to content

Commit 3d33695

Browse files
committed
MsSqlCeDialect supports guid.native generator (NH-3196)
1 parent b51aba2 commit 3d33695

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/NHibernate.Test/IdGen/NativeGuid/NativeGuidFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ protected override IList Mappings
2020
public void Crd()
2121
{
2222
object savedId;
23-
using (ISession s = OpenSession())
24-
using (ITransaction tx = s.BeginTransaction())
23+
using (var s = OpenSession())
24+
using (var tx = s.BeginTransaction())
2525
{
2626
var nativeGuidPoid = new NativeGuidPoid();
2727
savedId = s.Save(nativeGuidPoid);

src/NHibernate/Dialect/MsSqlCeDialect.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ public override string IdentityColumnString
106106
get { return "IDENTITY NOT NULL"; }
107107
}
108108

109+
public override string SelectGUIDString
110+
{
111+
get { return "select newid()"; }
112+
}
113+
109114
public override bool SupportsLimit
110115
{
111116
get { return true; }

0 commit comments

Comments
 (0)