CSharpTest.Net
DbGuid Structure Members
See Also  Fields  Properties  Methods  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Data Namespace : DbGuid Structure


Glossary Item Box

The following tables list the members exposed by DbGuid.

Public Constructors

 NameDescription
Public ConstructorDbGuid ConstructorOverloaded.   
Top

Public Fields

 NameDescription
Public Fieldstatic (Shared in Visual Basic)ComparerReturns a comparer for comparing equality or sorting DbGuid instances  
Public Fieldstatic (Shared in Visual Basic)EmptyReturns an empty DbGuid structure.  
Public Fieldstatic (Shared in Visual Basic)SerializerReturns a serializer that can read/write a DbGuid to and from a stream.  
Top

Public Properties

 NameDescription
Public PropertyHigh64Returns the first/high 64 bits as a long  
Public PropertyIsSqlGuidReturns true if the DbGuid is the result of a call to ToSqlGuid.  
Public PropertyLow64Returns the second/low 64 bits as a long  
Top

Public Methods

 NameDescription
Public MethodCompareToCompares the current object with another object of the same type.  
Public MethodEqualsOverloaded. Indicates whether this instance and a specified object are equal.  
Public MethodGetHashCodeReturns the hash code for this instance.  
Public Methodstatic (Shared in Visual Basic)NewGuidCreates 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.  
Public MethodToByteArrayOverloaded. Big-endian byte array, not compatible with System.Guid.ToByteArray.  
Public MethodToDateTimeUtcReturns the UTC DateTime the guid was created. Will not work with ToSqlGuid().  
Public MethodToGuidReturns the value as a System.Guid type.  
Public MethodToSequenceGuidUsed 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.  
Public MethodToSqlGuidUsed 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.  
Public MethodToStringOverloaded. Returns the fully qualified type name of this instance.  
Top

Public Operators

public Operator Equality Compares the two objects for non-reference equality
public Operator Explicit Type Conversion Converts a System.Guid to a DbGuid
public Operator Greater Than Compares the two objects
public Operator Greater Than or Equal Compares the two objects
public Operator Implicit Type Conversion Converts the DbGuid to a System.Guid
public Operator Inequality Compares the two objects for non-reference equality
public Operator Less Than Compares the two objects
public Operator Less Than or Equal Compares the two objects
Top

See Also

Generated with Document! X 2011 by Innovasys