Can a parameter be passed to the DataPortal_Update or [Update] just like during the Fetch? #1615
-
The fetch allows me to pass parameters. [Fetch] but the Update throws an error if I pass a parameter. I was assuming that if I override the SaveAsync on the BusinessListBase, the userState would be the parameter. So whenI try to do this: [Update] I get: Error DataPortal.Update failed (Invalid operation - update not allowed):DataList.DataPortal_Update method call failed If I remove the scid parameter then the Update works. Is there a way to pass a parameter on the DP Update? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There is not a way to pass a parameter to insert/update/delete operations. What is the scenario where you want to pass a parameter? |
Beta Was this translation helpful? Give feedback.
-
I have multiple database instances for an app wherein the UI selection from the user drives how I construct my database connection string. I was able to get around it by using the Csla.ApplicationContext.Clientcontext. |
Beta Was this translation helpful? Give feedback.
I have multiple database instances for an app wherein the UI selection from the user drives how I construct my database connection string.
I was able to get around it by using the Csla.ApplicationContext.Clientcontext.