Silverlight data portal compression

Modified: 2009/04/10 14:46 by RockfordLhotka - Categorized as: Silverlight
The content here is based on the InventoryDemo app in the Samples download for CSLA .NET for Silverlight.

1. Copy the ZipBin folder into your solution.

Server business objects project:
  1. Create folder called 'Compression'
  2. Add CompressedHost.cs and CompressionUtility.cs from the InvLib.Server project.
  3. Update the namespaces in these files.
  4. Add a reference to ICSharpCode.SharpZipLib.

Client business objects project:
  1. Create folder called 'Compression'.
  2. Add a link to your CompressionUtility.cs file (in server objects).
  3. Add 'CompressedProxy.cs' from the InvLib.Client project.
  4. Update the namespace in CompressedProxy.cs.
  5. Add a reference to SharpZipLib.

Web service project:
  1. Find and change the name to 'YourBusinessLibrary.Compression.CompressedHost'.
  2. Do the same in WcfPortal.svc.

Silverlight application:
  1. Add this line to app.xaml.cs Application_startup: Csla.DataPortal.ProxyTypeName = typeof(BusinessLibrary.Compression.CompressedProxy<>).AssemblyQualifiedName;

This content was pulled from a forum post by James Thomas.

All content and CSLA .NET is Copyright © 2009-2011 Marimer LLC