<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : DataContract</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : DataContract</description>
  <pubDate>Wed, 10 Jun 2026 19:11:02 -700</pubDate>
  <lastBuildDate>Thu, 20 Nov 2008 14:07:30 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1006</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>DataContract : No, you can use the DataContractSerializer....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3653#3653</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1006<br /><strong>Posted:</strong> 20-Nov-2008 at 2:07pm<br /><br />No, you can use the DataContractSerializer.&nbsp; DCS recognizes older serialization attributes and interfaces, and since entities are marked Serializable and implement IXmlSerializable they can be serialized with DCS.&nbsp; <DIV>&nbsp;</DIV><DIV>You can mark any property with a serializable data type with the WebServiceVisible attribute.&nbsp; Properties returning collections of related entities can be returned too.&nbsp; In order to return the object graph though (eg, an order and its details), you also have to add the associated EntityRelationLinks to the&nbsp;EntitySerializationHelper.PublishRelationList, like so:</DIV><DIV>&nbsp;&nbsp;&nbsp; <FONT color=#2b91af size=2><FONT color=#2b91af size=2>EntitySerializationHelper</FONT></FONT><FONT size=2>.PublishRelationList(pm).AddRange(span.EntityRelationLinks);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>The EntitySerializationHelper is intended for internal use only, and could be marked as internal in some future release (although there are no plans to do so right now).</FONT></DIV>]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 14:07:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3653#3653</guid>
  </item> 
  <item>
   <title>DataContract : Thanks for the info Kim. I have...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3652#3652</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=404" rel="nofollow">jeffk</a><br /><strong>Subject:</strong> 1006<br /><strong>Posted:</strong> 20-Nov-2008 at 1:49pm<br /><br />Thanks for the info Kim.&nbsp; I have a few more questions.<DIV>&nbsp;</DIV><DIV>Am I correct in understanding that I&nbsp;cannot use the DataContractSerializer?</DIV><DIV>&nbsp;</DIV><DIV>Also, if I have created properties in my entity class (many which access other entities using entity relations), can these properties be serialized?&nbsp; If so, what do I need to do for them?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 13:49:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3652#3652</guid>
  </item> 
  <item>
   <title>DataContract : If you had an Enterprise license...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3651#3651</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1006<br /><strong>Posted:</strong> 20-Nov-2008 at 12:52pm<br /><br />If you had an Enterprise license you would be able to open the Object Mapper and select a few options to expose your entities and selected properties.&nbsp;&nbsp;Otherwise, you need to do the following: <DIV>&nbsp;</DIV><DIV>For any Entity type to be exposed from the service:</DIV><DIV>&nbsp;- Override the properties to be exposed</DIV><DIV>&nbsp;- Mark these overridden properties with the &#091;WebServiceVisbile&#093; attribute</DIV><DIV>&nbsp;</DIV><DIV>For example,</DIV><DIV>&nbsp;</DIV><DIV>public sealed partial class Territory : TerritoryDataRow {</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&#091;WebServiceVisible&#093;<BR>&nbsp;&nbsp;&nbsp; public override long AreaId {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return base.AreaId; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set { base.AreaId = value; }<BR>&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;&nbsp;&nbsp; &#091;WebServiceVisible&#093;<BR>&nbsp;&nbsp;&nbsp; public override string Description {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return base.Description; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set { base.Description = value; }<BR>&nbsp;&nbsp;&nbsp; }<BR>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 12:52:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3651#3651</guid>
  </item> 
  <item>
   <title>DataContract : I have theDevForce professional...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3650#3650</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=404" rel="nofollow">jeffk</a><br /><strong>Subject:</strong> 1006<br /><strong>Posted:</strong> 20-Nov-2008 at 11:54am<br /><br />I have the&nbsp;DevForce professional license.&nbsp; <DIV>&nbsp;</DIV><DIV>Sorry it was unclear to me exactly what changes need to be made and where.&nbsp; Are you saying I can just use the Ideablade attribute in my service definition or do I have do regenerate my model after adding additional attributes or both?</DIV><DIV>&nbsp;</DIV><DIV>It would be very helpful if you could provide explicit directions for how to do this.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Jeff</DIV>]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 11:54:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3650#3650</guid>
  </item> 
  <item>
   <title>DataContract : Entity types in DevForce Classic...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3649#3649</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1006<br /><strong>Posted:</strong> 20-Nov-2008 at 11:09am<br /><br />Entity types in DevForce Classic are not decorated with DataContract and DataMember attributes, but are marked as Serializable and implement IXmlSerializable.&nbsp;&nbsp; The newer attributes are not used because DevForce Classic still supports .NET 2.0+.&nbsp; In order to use Entity types in a WCF service you need to mark the properties to be exposed with the IdeaBlade.Util.WebServiceVisible attribute. You can do this using the Object Mapper if you have an Enterprise license; if you don't have an Enterprise license, then it's a bit more work.]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 11:09:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3649#3649</guid>
  </item> 
  <item>
   <title>DataContract : I have created a wcf data contract...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3648#3648</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=404" rel="nofollow">jeffk</a><br /><strong>Subject:</strong> 1006<br /><strong>Posted:</strong> 20-Nov-2008 at 6:11am<br /><br />I have created a wcf data contract for a service I'm implementing and marked it up using the &lt;DataContract&gt; and &lt;DataMember&gt; attributes.<DIV>&nbsp;</DIV><DIV>This all works fine for .net basic types like int, string, etc. but when I attempt to use a DevForce entity type the DataContractSerializer generates an error.</DIV><DIV>&nbsp;</DIV><DIV>Is there something special I need to do to be able to use my entity types in Data Contracts?</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Jeff</DIV>]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 06:11:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1006&amp;PID=3648#3648</guid>
  </item> 
 </channel>
</rss>