MM .NET Application Framework

Product Details

Remote Data Access with WCF Services

MM .NET's family of WCF Services Data Access classes allow you to access data remotely. Our flexible architecture allows you to access data locally (for example, on a LAN) and then switch dynamically at run time to accessing data remotely via WCF services! For example, when a sales rep is in the home office, he can attach directly to the company's LAN and access data locally:

When the sales rep is at a customer's site, he can attach to his home company's data (normally by selecting an option when logging in) by means of WCF services:

Here's the good news--based on MM .NET's practice of programming to an interface rather than an implementation, you don't have to change anything about your existing application to access data both locally and remotely! Here's why...

Normally, an MM .NET business object uses a data access class which creates a connection to the back end database for retrieving and updating data:

When using a Web Service data access class, as shown in this diagram the business object instantiates the Web Service Data access class which looks just like a regular MM .NET data access class:

Here's how messages flow:
  1. The business object makes a call to the Web Service data access class
  2. The WCF Service data access class translates the command into XML that is transmitted across the web to the Data WCF Service.
  3. The Data WCF Service converts the XML command into a standard ADO.NET command
  4. The Data WCF Service passes the call to the real data access class.
  5. The real data access class passes the result back to the Data WCF Service
  6. The Data WCF Service serializes the result and passes it back to the WCF Service data access class across the web
  7. The WCF Service data access class deserializes the result and passes it back to the business object.

Back to Feature List