Have you looked into using positional parameters instead?

If there truly is no other way (haven't looked closely) it sounds like
a reasonable request. In that case I recommend opening feature request
in Jira, then submit a pull request relative to the 3.3.x branch.

/Oskar


2013/3/20 Mike Charalambous <[email protected]>:
> Hi
>
> Does anybody know why NHibernate.Driver.DriverBase.ToParameterName is a
> static method? Would there by any problem with making it virtual so it can
> be overridden?
>
> I'm wondering this because of a question on StackOverflow with the title
> possible-to-change-format-of-nhibernate-formulates-bind-variables. The
> person who created this question is trying to create a dialect for SQLBase
> which requires its parameters to be a number, which is not possible with the
> current implementation of ToParameterName. Looking through DriverBase I
> couldn't see how it would be possible to make the necessary changes in a
> child class the would allow for the parameters to be a number.  The only
> alternative I could see to overriding this method is to not inherit from
> DriverBase but make a copy of it for the new driver.
>
> What do you think of this suggested change?
>
> Thanks for reading
>
> Mike
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nhibernate-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to