1
1

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

asked Nov 02 '14 at 06:13

Leonid%20B's gravatar image

Leonid B
15112


One Answer:

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.

answered Nov 05 '14 at 04:25

Alexey%20Kulakov's gravatar image

Alexey Kulakov
77225

edited Nov 05 '14 at 04:56

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

Subscription:

Once you sign in you will be able to subscribe for any updates here

Tags:

×7

Asked: Nov 02 '14 at 06:13

Seen: 4,595 times

Last updated: Nov 05 '14 at 04:56

powered by OSQA