Hi
In an application with local clients and a IIS hosted server application, am I right to think that by default, all the routines are local for the client, except the SAVE (the update) and the Get (the fetch) ? Or must I manually use something to tell which routine are local and which are server side?
Thanks for your help!
Thanks for your answer, Marjon.Marjon:The way that it works with CSLA is that any code within a DataPortal_XYZ method will be executed on the server by default
So, if I understand correctly, if I have a CSLA object who has a method Traitment, this method will be local as it is not a DataPortal_XYZ method?
Well... that depends.
The DP_ routines are, as has already been noted, executed on the server side, unless the "RunLocal" attribute is applied. Any routines that are called from the DP_ method code would also be executed server-side as well. So if your "Traitment" method is called from one of your DP_ methods, then it will run on the server. Otherwise, it's running in your client process.
(Note that if you're running the local DataPortal, everything is technically client side, since you have no external server in that instance. But that's probably not what you're asking.)
HTH
- Scott
Copyright (c) Marimer LLC