Hi, We are developing complicated WEB and Win forms application with using Dataobject.net 4.6 or 5.0 version. I made couple of POC to check different aspects of dataobjects, but still some point is not clear for me. Our application will be divided to Server side (developed with WCF) and client side (WEB or other server). As I found that the dataobject.net business objects are not serializable so it's can't be used in WCF contract (or may be I am wrong?). What will be the best practice of using dataobjects in this case? Use 2 sets of the business objects: one set (derived from Entity) will be used on the DAL layer and the second set (regular serializable objects) will be used in the WCF services and server client with some convertor between 2 sets of objects? Regards, Leonid |
Hi Leonid B. DataObject.Net has serialization of Entities, but there are some problems with it. When model haven't loop references then it's Ok, otherwise, it is not working good. I recommend you use conversion to DTO and then serialize DTO-object. |