Okay, I've implemented this and the patch is in NH-2348.  Hopefully we can
see this supported so frameworks like ActiveRecord, Graham's, and mine work
without extra mapping layers.

        Patrick Earl

On Fri, Sep 24, 2010 at 4:46 PM, Patrick Earl <[email protected]> wrote:

> We're doing exactly that as well, but I wanted to be able to use things
> like ActiveRecord (or even the Get method itself) out of the box.  Hence the
> proposal to put such functionality in the core.  It seems that my idea of
> mapping the aliases is lame though, as they could be derived automatically
> similar to how Criteria<Interface> does it.
>
>          Patrick Earl
>
>
> On Fri, Sep 24, 2010 at 4:23 PM, Graham Bunce <[email protected]>wrote:
>
>> I get round this by having a repository wrapper. In my Get / Load
>> methods I test for an interface (as its a simple Get<T> that can also
>> take a concrete) then instantiate the correct concrete class for that
>> interface and run the Get/Load against that. I use something similar
>> to Fabio's code to interrogate the NH interface -> concrete proxy map
>> to work out what the correct concrete type is.
>>
>> I don't have the code to hand to post, but it's something like the
>> above and works fairy well for me so far
>>
>
>

Reply via email to