/// <inheritdoc /> public override string ToString() { return(!this ? "(Empty)" : $"(Type = {EntityTypeNames.GetTypeName(Type)}, Handle = {Handle})"); }
/// <summary> /// Initializes a new instance of the <see cref="InvalidEntityArgumentException" /> class. /// </summary> /// <param name="paramName">Name of the parameter.</param> /// <param name="expectedType">The expected entity identifier type.</param> public InvalidEntityArgumentException(string paramName, Guid expectedType) : base( $"Invalid entity identifier type, expected type to be {EntityTypeNames.GetTypeName(expectedType)}.", paramName) { }