I have a website (lucky me) and in this website the data access is achieved using custom classes like this…
IList<Thing> things = ThingFactory.GetAll();
and
Thing thing = ThingFactory.Get(1);
…and everything is working just fine.
I’ve now been asked to develop a Windows Mobile 6/CF3.5 application (Windows Forms).
The application will pull down data from our server and store it in a SqlCe/Compact database for use offline. Any changes to the data (client or server) needs to be synchronised next time the device is docked.
Can someone please offer me some guidance on how I send data to and from the Mobile Application? My main question being is the following possible….
[WebMethod]
public IList<Thing> SyncThings(IList<Thing> thingsThatTheMobileChanged)
{
ThingFactory.SavedChangedThings(thingsThatTheMobileChanged);
return ThingFactory.GetAllThatHaveChangedSinceLastSync();
}
…and how is that consumed on the client/mobile side?
I have looked around at some other similar questions posted on SO, but I’m just not getting the answers I’m after!!
Many thanks for any help offered,
ETFairfax
you can try to serialize your list of objects and return array of bytes
PDA will take this array of bytes and deserialize it.