Method SerializePrimaryKeysToJsonForLogging
SerializePrimaryKeysToJsonForLogging<T>(PrimaryKeys<T>)
Serializes the PrimaryKeys<T> object to a JSON string for logging purposes.
public static string SerializePrimaryKeysToJsonForLogging<T>(this PrimaryKeys<T> primaryKeys)
Parameters
primaryKeys
PrimaryKeys<T>The PrimaryKeys<T> object.
Returns
- string
A JSON string representation of the primary keys with a prefix for logging.
Type Parameters
T
The type of the entity.