ayende/ravendb — pull request #1415 by cocytus (2014-09-19 13:07:02+00:00)
Title: Create RegisterIdLoadConvention to allow easier non-string id configuration

This PR enables you to:

docStore.Conventions.RegisterIdLoadConvention(id => "r/" + id);

then

var room = session.Load(13)

resulting in the load of document with full id "r/13".

In other words, this is the "load time" version of RegisterIdConvention().