-
You can deploy your app in a 2-tier or 3-tier deployment. In a 2-tier deployment your web server will configure the data portal to run in local mode. In a 3-tier deployment your web server will configure the data portal to communicate with the app server (probably another web role). These are the same...
-
I'm new to CSLA, and also unit testing in general, yet I'm newly assigned to a project that uses CSLA and they want to now write unit tests for it, and I'm lost. The project is a ASP.NET MVC 3 (c#) application, with a csla library that has umm inline? dataportal methods. The actual data fetching...
-
Hi Rocky We've been hunting an issue that's been eluding us for days now, but have eventually found the culprit. It turns out that the DataPortalMethodCache is returning the methods from cache, for data portal methods from other classes under certain circumstances. The reason for this is because...
-
You would need to pass that bit of info via a criteria object. Or in ClientContext. There is no automatically passed vale that tells the server side code that the client did an async call.
-
Yes, the old way continues to work (backward compatibility is important). The new way is relatively straightforward, and is in the new cslafact snippet. public static async Task<MyInfoList> FetchMyListAsync() { return await DataPortal.FetchAsync<MyInfoList>(); } Fwiw, there's a static...
-
In the current pre-release the WinRT data portal _is_ the Silverlight data portal. The code is identical, and the configuration is identical. You should use the WinRT data portal _exactly_ like the Silverlight data portal, because it is the same thing. I'm considering making the namespace technology...
-
We have model below for 10 buildings: Buildings ( EditableRootList ) --- à Floors( EditableChildList ) ----- à Rooms( EditableChildList ) But, each time of Save() in folowing code, it creates a new record for the previous saved-records. Anything I did wrong or I missed? (I did use CSLA...
-
Any local Storage technique should work fine with the local data portal. The point of CSLA is that it is agnostic to all data Storage techniques. You should be aware that I am reworking the local data portal to be simpler, and to support async/await, so the next prerelease will be different than the...
-
The exception indicates that you either don't have a server-side data portal endpoint set up, or that it isn't reachable. First, the endpoint must be a Silverlight data portal endpoint, not a .NET endpoint. When you set up and configure the data portal server, you should follow the instructions...
-
I'd appreciate input from the community. I am looking at the CSLA 4.5 data portal vs the current data portal, and the new async/await keywords. I am also thinking about the value of taking existing code to WinRT and reusing it unchanged. On .NET Create, BeginCreate, and CreateAsync all work On Silverlight...