DataPortal issue - Invalid operation - Create is not allowed #1825
-
Question Hi Folks, I’m facing a DataPortal issue when i made a CommandBase call.
The issue can be reproduce with the projecttracker (for whatever UI techno : Bazor, Wpf, Xamarin) when calling the ProjectExistsCommand or ResourceExistsCommand. By the way, all the other CSLA stereotypes (BusinessBase, BusinessListBase...) work well. I have been able to fetch, update and detele record into database using csla stereotypes. I have also try to up to date the CSLA libraries version but same issue. Thanks in advance for your help, Cedric Version and Platform |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Try replace constructors: public ResourceExistsCommand()
public ResourceExistsCommand(int id) to [Create, RunLocal]
private void Create()
[Create, RunLocal]
private void Create(int id) |
Beta Was this translation helpful? Give feedback.
-
Thanks Tung Ngo, Thanks Rocky, the solution works like a charm. |
Beta Was this translation helpful? Give feedback.
Try replace constructors:
to