<PackageReference Include="System.Data.SqlClient" Version="4.7.0-preview4.19212.13" />

SqlGuid

public struct SqlGuid : INullable, IComparable
Represents a GUID to be stored in or retrieved from a database.
public static readonly SqlGuid Null

Represents a DBNull that can be assigned to this instance of the SqlGuid structure.

public bool IsNull { get; }

Gets a Boolean value that indicates whether this SqlGuid structure is null.

public Guid Value { get; }

Gets the value of the SqlGuid structure. This property is read-only.

public SqlGuid(byte[] value)

Initializes a new instance of the SqlGuid structure using the supplied byte array parameter.

public SqlGuid(Guid g)

Initializes a new instance of the SqlGuid structure using the specified Guid parameter.

public SqlGuid(int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k)

Initializes a new instance of the SqlGuid structure using the specified values.

public SqlGuid(string s)

Initializes a new instance of the SqlGuid structure using the specified String parameter.

public static SqlBoolean Equals(SqlGuid x, SqlGuid y)

Performs a logical comparison of two SqlGuid structures to determine whether they are equal.

public static SqlBoolean GreaterThan(SqlGuid x, SqlGuid y)

Compares two instances of SqlGuid to determine whether the first is greater than the second.

Compares two instances of SqlGuid to determine whether the first is greater than or equal to the second.

public static SqlBoolean LessThan(SqlGuid x, SqlGuid y)

Compares two instances of SqlGuid to determine whether the first is less than the second.

Compares two instances of SqlGuid to determine whether the first is less than or equal to the second.

public static SqlBoolean NotEquals(SqlGuid x, SqlGuid y)

Performs a logical comparison on two SqlGuid structures to determine whether they are not equal.

public static SqlBoolean op_Equality(SqlGuid x, SqlGuid y)

Performs a logical comparison of two SqlGuid structures to determine whether they are equal.

public static SqlGuid op_Explicit(SqlBinary x)

Converts the SqlBinary parameter to SqlGuid.

public static Guid op_Explicit(SqlGuid x)

Converts the supplied SqlGuid parameter to Guid.

public static SqlGuid op_Explicit(SqlString x)

Converts the specified SqlString structure to SqlGuid.

Compares two instances of SqlGuid to determine whether the first is greater than the second.

Compares two instances of SqlGuid to determine whether the first is greater than or equal to the second.

public static SqlGuid op_Implicit(Guid x)

Converts the supplied Guid parameter to SqlGuid.

Performs a logical comparison on two SqlGuid structures to determine whether they are not equal.

public static SqlBoolean op_LessThan(SqlGuid x, SqlGuid y)

Compares two instances of SqlGuid to determine whether the first is less than the second.

Compares two instances of SqlGuid to determine whether the first is less than or equal to the second.

public static SqlGuid Parse(string s)

Converts the specified String structure to SqlGuid.

public int CompareTo(SqlGuid value)

Compares this SqlGuid structure to the supplied SqlGuid and returns an indication of their relative values. Compares more than the last 6 bytes, but treats the last 6 bytes as the most significant ones in comparisons.

public int CompareTo(object value)

Compares this SqlGuid structure to the supplied object and returns an indication of their relative values. Compares more than the last 6 bytes, but treats the last 6 bytes as the most significant ones in comparisons.

public byte[] ToByteArray()

Converts this SqlGuid structure to a byte array.

Converts this SqlGuid structure to SqlBinary.

Converts this SqlGuid structure to SqlString.