Duplicate Properties in Data Contract and BAL
I have a Silverlight project that transfers data using a data contract to a WCF service. The WCF method then calls the BAL class, which again has the same properties. Is there a way to avoid duplicate properties?
+1
Chakra
source
to share
1 answer
chuck,
Depending on your situation, this might work for you. You can exchange items between projects in Visual Studio. When adding a new element (C # class in your case) just add the element as a bound element. By doing this, the class will only exist in one place. I wrote a blog post about this a couple of months ago.
Hope this helps!
http://www.pagebrooks.com/archive/2008/10/11/sharing-code-between-.net-and-silverlight-platforms.aspx
0
Page Brooks
source
to share