Serializable IRelationPredicateBucket, PredicateExpression, IPrefetchPath2

Posts   
 
    
Rushmore
User
Posts: 125
Joined: 27-Jan-2005
# Posted on: 06-Dec-2006 00:49:58   

I have to develop a kind of replication/synchronization with my (yet) default dbms. I have already developed a WebService for online dataaccess in a wireless lan environment for mobile devices (PPC). But now I have to move the data to the devices, so that they can work offline (SqlServerCe). The first thought was "Sql Server Mobile" merge replication. Everything works fine (test environment). But now I have to replicate the data from my dbf files to the Sql Server an back! That is a lot of silly work. Now I began to extend my webservice to do that work directly with my current dbms. But I ran into serialization problems with LLBLGen. I have already read that the serialization doesn´t work for webservices. I understand why, but I have an another situation. I can´t use remoting on my PPC (that isn´t implemented nor CF 2.0). That was the reason why I decide to use webservices even if they are only for primitive datatypes. The SchemaImporter is a great improvment in LLBLGen Pro v2.0 and it eased my work (sorry for my bad english) a lot.

Is there any way to serialize the objects listed in the subject of the thread? Or do I have to create for every Entity a webmethod?

I know it is against your philosphie, but please tell me how I can serialize with ease the IRelationPredicateBucket, PredicateExpression and IPrefetchPath2 objects.

Kindly regards

bclubb
User
Posts: 934
Joined: 12-Feb-2004
Rushmore
User
Posts: 125
Joined: 27-Jan-2005
# Posted on: 06-Dec-2006 10:06:00   

I will try the SoapFormatter. First I have to make sure that the formatter is available in the CF for serialization.

Regards, Carlo

Rushmore
User
Posts: 125
Joined: 27-Jan-2005
# Posted on: 06-Dec-2006 11:20:09   

The compact framework is a little to compact. The binary and soap formatters are not supported by the compact framework.

Any other suggestions?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 07-Dec-2006 10:56:33   

I'm afraid the road ends there... What's left is a service interface which is called by the client on the compact framework and to which it passes parameters which are used by the service to build the relations/predicates/prefetch paths you want.

So a more high-level service than you're looking for now.

Frans Bouma | Lead developer LLBLGen Pro
Rushmore
User
Posts: 125
Joined: 27-Jan-2005
# Posted on: 07-Dec-2006 13:03:21   

This is exactly what I have done last night sunglasses .

You can close the thread. Thank you.