-
Prior to version 4.5 the data portal supported 3- and 4-tier deployments. In a 3-tier deployment the layers and tiers are named like this: Client -> Server -> <your database goes here> or Silverlight -> Client -> <your database goes here> In a 4-tier deployment the layers and...
-
The CSLA books cover version 4.0-4.3. The data portal has changed _significantly_ in 4.5 because we now fully support async/await. The new async/await behaviors in .NET introduce some interesting exception handing issues, and I tried to handle them in a meaningful way. Because your DP_XYZ or factory...
-
I love your avatar graphic - SPOON!! :) The data portal only really requires a synchronous binding. But I'm guessing that the MQ binding is async, so it probably won't work, at least not easily. To put it another way, the client-side data portal proxy must appear to be synchronous. So you could...
-
[quote user="ngm"] Let's say I've got Order BO. When it's on the server-side Data Portal, prior to its persistence, it has to coordinate interaction with several other BOs such as Customer, ProductList and GeneralLedger. Order simply calls factory method on each of those objects...
-
GlobalContext should flow one-way, from the caller to the callee. If that doesn't happen then that's a bug. But if Principal is flowing then I suspect the context dictionaries are flowing as well - but again, bugs are possible. You are right that it doesn't automatically flow back to the...
-
Many of my design thoughts were captured in my blog as I was doing the work for .NET 4.5 last year. For example: http://www.lhotka.net/weblog/CSLADataPortalChangesInVersion45.aspx There are two basic goals. First, on the client-side data portal I want to enable the use of the await keyword when calling...
-
The server-side data portal is never actually async, because the top-level invocation from WCF (or any other data portal host) is ultimately synchronous. My goal was to enable the scenario where you implement async behaviors within your DataPortal_Fetch or factory methods. It is also the case that the...
-
This approach allows your web server code to leverage the full data portal behavior for routing requests. Most importantly, you might choose to use something other than the WCF channel to communicate with your app server, so delegating to WcfProxy or WcfPortal would be bad as it would eliminate all your...
-
It might be that you can't mix enterprise services and transactionscope transactions. When you mark your DataPortal_XYZ method as Transactional(EnterpriseServices) the data portal routes your call through a COM+ component that requires a COM+ transaction. So by the time your DataPortal_XYZ method...
-
The behavior of the data portal has changed quite a bit from 4.3 to 4.5. This is because the data portal in Silverlight now works the same as in other platforms, and because BeginXYZ and XYZAsync now work the same. One primary area of change is when calling BeginCreate or BeginFetch and using the local...