The following tables list the members exposed by DbGuid.
Name | Description | |
---|---|---|
DbGuid Constructor | Overloaded. |
Name | Description | |
---|---|---|
Comparer | Returns a comparer for comparing equality or sorting DbGuid instances | |
Empty | Returns an empty DbGuid structure. | |
Serializer | Returns a serializer that can read/write a DbGuid to and from a stream. |
Name | Description | |
---|---|---|
High64 | Returns the first/high 64 bits as a long | |
IsSqlGuid | Returns true if the DbGuid is the result of a call to ToSqlGuid. | |
Low64 | Returns the second/low 64 bits as a long |
Name | Description | |
---|---|---|
CompareTo | Compares the current object with another object of the same type. | |
Equals | Overloaded. Indicates whether this instance and a specified object are equal. | |
GetHashCode | Returns the hash code for this instance. | |
NewGuid | Creates a (mostly) sequential DbGuid using 7 bytes of DateTime in UTC ticks, 3 bytes of a sequentially incremented random value, and 6 bytes of random data. | |
ToByteArray | Overloaded. Big-endian byte array, not compatible with System.Guid.ToByteArray. | |
ToDateTimeUtc | Returns the UTC DateTime the guid was created. Will not work with ToSqlGuid(). | |
ToGuid | Returns the value as a System.Guid type. | |
ToSequenceGuid | Used to reverse the effects of ToSqlGuid() and obtain a guid who's ToByteArray result is sequential. If IsSqlGuid is already False this call has no effect and returns the same value. | |
ToSqlGuid | Used to swap the first 8 bytes with the last 8 bytes for SQL-Server optimization. The inverse operation can be performed by calling ToSequenceGuid() on the result. If IsSqlGuid is already True this call has no effect and returns the same value. | |
ToString | Overloaded. Returns the fully qualified type name of this instance. |
Equality | Compares the two objects for non-reference equality |
Explicit Type Conversion | Converts a System.Guid to a DbGuid |
Greater Than | Compares the two objects |
Greater Than or Equal | Compares the two objects |
Implicit Type Conversion | Converts the DbGuid to a System.Guid |
Inequality | Compares the two objects for non-reference equality |
Less Than | Compares the two objects |
Less Than or Equal | Compares the two objects |
Reference
DbGuid StructureCSharpTest.Net.Data Namespace
Int32 DbGuid.DbGuidComparer.Compare(DbGuid,DbGuid)
Boolean DbGuid.DbGuidComparer.Equals(DbGuid,DbGuid)
Source Code
Library/Data/DbGuid.csUsed By
DbGuid DbGuid.ToSqlGuid()DbGuid DbGuid.ToSequenceGuid()
Boolean DbGuid.Equals(Object)
Int32 DbGuid.DbGuidComparer.GetHashCode(DbGuid)