Nate Bross Posted November 13, 2008 Posted November 13, 2008 (edited) Do you mark your Data Objects with [DataContract] and its fields with [DataMember] in the event that you would ever want to use it in a WCF Service? I used to mark my Data Objects as [serializable] and since it was only one tag per class I didn't mind doing it since frequently I would want to serialize the object for storage, and it let me use it in asmx services as well. Adding all of this WCF specific stuff seems like alot of work for the off chance you may end up using it down the road, but if you don't do it initially and need to use it in a WCF service later you don't have any options except to change and recompile, am I wrong? Edited November 13, 2008 by Nate Bross Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.