6 Aug 10:55
WCF: Data contract on domain objects or seperate contract objects?
From: Krister <lukask77 <at> yahoo.com>
Subject: WCF: Data contract on domain objects or seperate contract objects?
Newsgroups: gmane.comp.programming.domain-driven-design
Date: 2008-08-06 08:57:09 GMT
Subject: WCF: Data contract on domain objects or seperate contract objects?
Newsgroups: gmane.comp.programming.domain-driven-design
Date: 2008-08-06 08:57:09 GMT
I have a question about best pratices about where to set the [DataContract] and [DataMember] attributes when using WCF. Today I have set the attributes on the domain objects but is it better to have contract objects instead? If so, where should I have the contract objects stored? In the WCF layer or in the Business logic layer? One other question I have is if there is some kind of good way to mapp domain objects to contract objects? Best regards Lukas ------------------------------------
RSS Feed