Disconnected Objects (Web Services)

Jul 20, 2009 at 9:41 PM

Can i send my objects over the wire retaining object identity?

Jul 21, 2009 at 10:17 AM
Edited Jul 21, 2009 at 10:22 AM

Right now there is no "built in" mechanism to send the ObjectLounge entities over a network. We are currently working on this. But you can still code up a service layer by hand. What you would have to do is design transport objects according to your network library (e.g. classes implementing DataContractAttribute in WCF) and then send/receive those objects over the wire. Inside your service methods you would have to map those transport objects to entities. To get the identity of your entities, implement a readable property inside of them that returns the entities GUID field - the one you have to register in the IdentityAttribute of the entity class.