Class LsnExtensions
Extension methods for working with SQL Server Change Data Capture LSN (Log Sequence Number) values.
public static class LsnExtensions
- Inheritance
-
LsnExtensions
- Inherited Members
Methods
ByteArrayToHex(byte[])
Converts a byte array to a hexadecimal string representation.
public static string ByteArrayToHex(this byte[] bytes)
Parameters
bytesbyte[]The byte array to convert.
Returns
- string
A hexadecimal string representation of the byte array.
CompareLsn(byte[], byte[])
Compares two LSN values for ordering.
public static int CompareLsn(this byte[] lsn1, byte[] lsn2)
Parameters
Returns
- int
A negative value if lsn1 is less than lsn2, zero if they are equal, or a positive value if lsn1 is greater than lsn2.