Hi Robert,
Thank you for your comment.
Actually, I'm thinking about XML because :
- local data comes from the local DB which is designed with many tables, relations and constraints... Bringing the whole thing to the Web Database would be too complex, I think, because I would never access this data for modifications, except I need to resync it often (I would find worst to have to DELETE or MODIFY / RE-INSERT all the data each time a synchronization process is executed... Isn't it ?)... Therefore, I found the XML file way not so 'beautiful' from architecture and design perspective, but it could provide a flexible way to manage it ...
I mean, the most likely, there will be frequent changes in the local database in the future, which will have to be handled by the local system (no big changes, but new fields or new tables... not removing the existing ones). I don't want to have to update the whole website each time we provide little enhencement to the local DB. So, I was pleased with the dataset/xml way because I could access the fields using their names (ok, horrible for low coupled designs) but at least, this would be easy to maintain.
This system is not intented for really huge db, in our old system, we have 18.000 files from which multiples are related to the same client... We do not expect to have 18000 files to manage for the Web App really soon (if it would grow up with such needs, we could review the system for better performance). For the moment, i'm worried about development quickness, maintenance and adaptability...
That's why I would not use the NetTiers templates to manage the read-only data but some 'hand-made" objects, using a Xml helper...
About my question to serialize the NetTiers entities in XML, is is a supported (or easy) way of doing:
- load a client entity
- deepload all its contracts
- deepload all its related contacts
- deepload all its addresses,
- etc...
- --> Serialize or Export the object to a readable XML file with the whole object tree ?
- --> I think I saw there was an ExportToDataset method supported by the Entities... Would they answer to my needs ?
Thanks anyway for all your comment. I'm still really not sure of how to make this so, any recommandation for an alternate solution will be welcome !
Mike.