Book Image

.NET Compact Framework 3.5 Data Driven Applications

By : Edmund Tan
Book Image

.NET Compact Framework 3.5 Data Driven Applications

By: Edmund Tan

Overview of this book

<p>The new .NET CF 3.5 framework provides enterprise application developers with a whole arsenal of possibilities at their disposal, but without proper guidance on developing performance-critical enterprise applications, it is easy to make the wrong design and technology decisions.<br /><br />This book guides you to build each part of a robust enterprise application by illustrating the .NET CF 3.5 framework with the help of real-world business applications. It will not only help you to master basic .NET CF skills, but also outlines the best methods, techniques, and tools available to create high-impact and performance-critical data-driven enterprise mobile applications. It provides a solid set of guidelines to aid .NET CF developers to understand how best to apply the features of the .NET CF 3.5 framework.<br /><br />The bulk of the book illustrates the basic concepts of .NET Compact 3.5 Framework programming by walking the reader through 3 different kinds of mobile applications:</p> <ul> <li>A thick-client mobile sales-force application</li> <li>A thin-client mobile dashboard and reporting application</li> <li>A customer support case management application</li> </ul> <p><br />Both the SQL Server Lite and Oracle Lite mobile databases are covered in detail, from data access to data synchronization. The book explains how device features such as Bluetooth, SMS, telephony, Infrared, and Windows Contacts can be accessed via .NET CF in a real-world example, namely the mobile sales-force application. It also explains.NET CF's GDI+ features that can be used to create rich charts and reports. You learn to synchronize the mobile application with remote datasources and communicate via web services and WCF services. The book outlines performance optimization and memory management techniques on the mobile platform. It also outlines the tools and techniques available for testing, performance-tuning, deploying and debugging .NET CF enterprise applications (including Power Toys for .NET Compact Framework 3.5 from Microsoft).</p>
Table of Contents (18 chapters)
.NET Compact Framework 3.5 Data-Driven Applications
Credits
About the Author
About the Reviewer
Preface

Using Microsoft Synchronization Services


The following sections describe how you can set up the Sales Force application to sync with a similar set of tables on the server side using the Microsoft Synchronization Services Framework. The steps involved in performing this sync are roughly outlined as follows:

  1. 1. Create the CRMLive tables in the server-side database.

  2. 2. Create a WCF Service Library hosted at the server side to listen for requests from the mobile device.

  3. 3. Create a local database cache in the WCF Service Library project.

  4. 4. Use the Microsoft Synchronization Services Framework wizards to generate the relevant .NET classes required for the sync in the Sales Force and WCF Service Library projects. You will also need to tweak the default settings for some of these generated classes.

  5. 5. Define appropriate filters for the sync—so that only a subset of the data is synced (instead of all records in a table).

  6. 6. Add some code to your Sales Force project to initiate the sync.

Setting up Microsoft...