Can you not put these custom properties into the app.config file. That
should be very simple.

John Davidson

On Sat, May 1, 2010 at 8:32 PM, Graham Bunce <[email protected]>wrote:

> Hi,
>
> I'm trying to add custom properties to the hibernate.cfg file to
> control additional behaviour that we have extended in NH.
> Unfortunately the NH XSD forces the Configure() step to fail as it
> doesn't recognise my configuration.
>
> I'd like to extend the configure class to, perhaps, intercept the
> configuration and allow me to read the custom properties and strip
> them out prior to NH using them, but the class doesn't provide
> appropriate extension points to do so (i.e. I can't override the
> "configure()" method).
>
> I thought about creating my own configure class that wraps the NH one,
> reads the properties myself and manually add them to the NH configure
> class, but it seems a bit hacky.
>
> Is there a cleaner solution?
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to