Thursday, September 09, 2010
Support » Support Forum
Register Login
HomeWhat is NDO?- Executive Overview- NDO for DevelopersHow NDO Works- Persistent Classes- Mapping- Queries- Reverse Engineering- Inheritance, Polymorphism- Distributed ApplicationsLicensingSupport- Support Forum- FAQ- Solutions- Downloads- E-Mail Support- Tutorial VideosOnline ShopContact
Welcome to the NDO support forum!
Please register/login at the site if you want to post a thread. We sometimes copy support mails of common interest to the forum. They appear with anonymous sender. Please post your messages in English language if possible. You can do your posts also in German, we will translate your post and our answer so that all users of the forum can read your posts. The forum software requires that javascript is enabled. Please do not insert licence information or licence keys in forum posts. If you know a good answer to a post of another user, feel free to reply! The forum is monitored. We reserve the right to remove posts we consider not to be useful for other forum users.
Hi Michael,
as far as I know the parameters for Stored Procedures are transferred the same way as parameters for queries. So try to just add your parameters to the query:
NDOQuery<...>q = new NDOQuery<...>(...);q.Parameters.Add(myFirstParameter);q.Parameters.Add(mySecondParameter);
The order of the parameters must match the order of the parameters as defined in the parameter list of the SP.
This solution applies only to Sql Server.
Best Regards:Mirko
due to illness I'm currently not able to code and provide an example by myself. I'm very sorry for this.
NDO automatically assigns names to the parameters. For Sql Server the names are @p0, @p1 .... @pn. The parameter names of your SP must match these names.
Hope, this helps... sorry again.
Best RegardsMirko