January 26, 2010

Quest of the day

What is intended purpose of this class:
  public sealed class ProxyKeyGenerator<TKeyConsumer, TKeySource> : KeyGenerator
    where TKeyConsumer : Entity
    where TKeySource : Entity
    public override Tuple Next()
      var key = Key.Create<TKeySource>(Handlers.Domain);
      return key.Value;
    public ProxyKeyGenerator(KeyProviderInfo keyProviderInfo)
      : base(keyProviderInfo)
I.e. imagine this key generator is practically used somewhere. What can be the purpose of this? :)

A hint: I'm going to write a post related to legacy data import into DO4 database.