CollectionKey function and EntityKey function are now configurable by provider