Library/Library.Test/TestDbGuid.cs
C# | Copy Code |
---|---|
DbGuid testA = DbGuid.NewGuid(); TestEquality(testA, testA, true); TestEquality(testA, DbGuid.NewGuid(), false); TestEquality(testA, new DbGuid(Guid.NewGuid()), false); TestEquality(testA, testA.ToSqlGuid(), true); TestEquality(testA, testA.ToSqlGuid().ToSequenceGuid(), true); |
VB.NET | Copy Code |
---|---|
Dim testA As DbGuid = DbGuid.NewGuid() TestEquality(testA, testA, True) TestEquality(testA, DbGuid.NewGuid(), False) TestEquality(testA, New DbGuid(Guid.NewGuid()), False) TestEquality(testA, testA.ToSqlGuid(), True) TestEquality(testA, testA.ToSqlGuid().ToSequenceGuid(), True) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7