Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remoting Data via Web Service
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00994372
Message ID:
00995015
Vues:
29
Roy,

>I understand that the business objects themselves may not behave properly when remoted. That is fine but I need to remote the data. I know that I can easily fill and update datasets via web services because I have done that in the past (not using MM). What I am unable to determine is "where" I do that in the MM architecture. Is it in the business object or dataAccess object or elsewhere? How many methods must I override and which ones?

Actually, it's not hard to do...Here are the steps:

1. Create a subclass of the mmDataAccessSql class (as described in the MM .NET DevGuide topic "Creating Custom Data Access Classes"

2. Override the FillDataSet(DataSet ds, IDbDataAdapter dbAdapter, string tableName, bool clearOnFill) method and make a call to your Web Service that retrieves data

3. Override the SaveDataSet(public override int SaveDataSet(DataSet ds, string tableName, string primaryKeyName, bool retrieveAutoIncrementPK, IDbDataAdapter dbAdapter) method and make a call to your Web Service that updates the data.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform