Key.Format() seems to return different strings for the same entity depending on the situation : the type part may change from precise type to base type.

A very simple feature request : would it be possible to create a method like Key.Format() that always outputs the same string for a given entity?

This would allow easy integration for applications like a WCF service that transmit the key for later use.


Updated at 09.06.2010 8:18:28

Thanks for your reply.

I use a workaround : please tell me when this is fixed so that I can remove it.

Updated at 14.06.2010 8:45:25


This thread was imported from our support forum. The original discussion may contain more detailed answer.

asked Jun 08 '10 at 14:20

olorin's gravatar image


That's actually a bit strange - likely, a bug. It should really return the same string in any case.

So we'll check this ASAP.

(Jun 08 '10 at 14:20) Alex Yakunin Alex%20Yakunin's gravatar image

Definitely a bug.

The Key.Format() method relies on the TypeRef member which in turn is a reference to TypeInfo with various degrees of accuracy.

Not to mention odd usage of 'cachedFormatResult' field there...

(Jun 08 '10 at 14:20) Dmitri Maximov Dmitri%20Maximov's gravatar image

Done. Updated installers will be published in nearly 1 day.

(Jun 08 '10 at 14:20) Alex Yakunin Alex%20Yakunin's gravatar image
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA