'CreateChild' method of DataPortal and Application server #3123
-
In Using Csla 4 -Data Access book, we have "CreateChild method will never go across the network to an application server" (P116). Kind Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, only the root data portal calls (Create/Fetch/Update/Execute) implement the mobile object concept. All child data portal calls are lightweight, don't clone, don't go remote, all they do is invoke the appropriate child data portal operation method in the current context. The UOW pattern relies on the root object being invoked by the root data portal to be transported to the app server, and once there it can use the root or child data portal to implement all the server-side work. |
Beta Was this translation helpful? Give feedback.
Yes, only the root data portal calls (Create/Fetch/Update/Execute) implement the mobile object concept. All child data portal calls are lightweight, don't clone, don't go remote, all they do is invoke the appropriate child data portal operation method in the current context.
The UOW pattern relies on the root object being invoked by the root data portal to be transported to the app server, and once there it can use the root or child data portal to implement all the server-side work.