From: Jiri C. <di...@ci...> - 2007-01-29 13:58:39
|
Carlos Guzm=E1n =C1lvarez wrote: >> * First is adding small piece of code info FbParameter's ctor, that wi= ll=20 >> prepend the parameterName with '@' if there isn't '@' (of course we ha= ve=20 >> to discuss some cases, like parameters with generated names, etc.) >> - This maybe bring some problems, when you create parameter "test"=20 >> and in fact, it will be saved like "@test" so later, if you'll try to=20 >> find them you will get some surprise. ;) > This could be done, but it should be conifigurable from connection=20 > string ( or any other place ) Interesting. Thi solution seems to be not so good for me. :) >> * In FbCommand class add some code that will match to parameters witho= ut=20 >> '@'. This needs probably more work, but it's IMHO more robust. > This is not going to happen as it could give more problems than solutio= ns ;) Can you describe some of them? > Right now there are two ways to define the parameters now, named and wi= th > place holder and i think there are 0 problem with the actual way they w= ork > ( the only problem could be with the ddex provider at design time ) Yep, I have some problems with DDEX and ASP.NET solutions, but the=20 solution was easy - interating thru parameters before postback and=20 adding '@'. :D --=20 Jiri {x2} Cincura http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com |