For your new driver, I suggest you create a Nuget package.
On Sat, Mar 23, 2013 at 12:04 PM, Mike Charalambous < [email protected]> wrote: > Hi Oscar > > Sorry for the delay in responding. > > From the docs it looks like it should support named parameter but the test > case Aether McLoud <http://stackoverflow.com/users/259201/aether-mcloud>gave > it looked like there was an issue. I looked into this further and > after a lot of fiddling around installing SQLBase I was able to reproduce > the issue he had. > > I was able to finally figure out the problem, and it turns out it was > possible to fix it by inheriting from ReflectionBasedDriver instead > OleDbDriver. Once I changed this to it worked fine so I guess my original > question about ToParameterName isn't important now. > > One more question on a somewhat related note. I have created a NHibernate > driver for the DBMS Sybase Advantage Database > Server<http://www.sybase.co.uk/products/databasemanagement/advantagedatabaseserver>. > I would like to share this driver so other people could use it. Where would > be the best place to host this driver? > > Thanks > > Michael > > > On Thursday, 21 March 2013 17:56:43 UTC, Oskar Berggren wrote: > >> 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 <michael.ch...@gmail.**com>: >> > 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.
