winforms - Extending WCF DataContract just to use it in GUI layer? -


is valid? or smell? i'd want is:

  • have datacontract object holds friendly object tree can saved service layer without gui not having worry it.
  • at gui level make heavy use of databinding , have gui specific logic (like cloning, flagging deleted, basic validations, inotifypropertychanged etc).

i'd extend datacontract class have add bindinglists, or specific gui logic , send object without need of translating wcf service layer.

maybe composition better approach extending? ideas?

i wouldn't extend datacontract class. create facade added functionality needed , handle communicating down through datacontract transparently.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -