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
primaryKeysPrimaryKeys<T>The PrimaryKeys<T> object.
Returns
- string
A JSON string representation of the primary keys with a prefix for logging.
Type Parameters
TThe type of the entity.