Note that there are some explanatory texts on larger screens.

plurals
  1. POIssue while generating Class from xsd file using svcutil.exe
    primarykey
    data
    text
    <p>I am working on <a href="http://www.freddes.se/2010/05/02/sharing-datacontracts-between-wcf-services/" rel="nofollow noreferrer">Sharing DataContracts between WCF Services</a> using the <code>svcutil.exe</code> tool </p> <p>I have defined <code>[DataMembar]</code> in library. For sharing data contract I am converting <code>DataContract.dll</code> to <code>DataContract.xsd</code> files.</p> <p><strong>Command</strong> is </p> <pre><code>svcutil /dconly &lt;my DataContractDLL path&gt; </code></pre> <p>After generating .xsd, I am generating class file from <code>DataContract.xsd</code> using the command </p> <pre><code>svcutil /dconly /language:CS DataContract.xsd /out:ClientDataContracts.cs </code></pre> <p>Every thing went fine and worked in above steps.</p> <p><strong>Issue faced:</strong></p> <p>I added <code>Dictionary</code>* type in one of the entities of my <code>DataContract.dll</code> library as follows (i.e. I added <code>TimeLogs</code> <code>DataMember</code> of <code>Dictionary</code> type.)</p> <pre><code>public partial class RecordDto { /// &lt;summary&gt; /// Gets or sets the Comment. /// &lt;/summary&gt; /// &lt;value&gt;Insurance Company.&lt;/value&gt; [WcfSerialization::DataMember(Name = "InsuranceCompany", IsRequired = false, Order = 25)] public InsuranceCompanyDto InsuranceCompany { get; set; } [WcfSerialization::DataMember(Name = "TimeLogs", IsRequired = false, Order = 26)] public Dictionary&lt;String, DateTime&gt; TimeLogs { get; set; } } </code></pre> <p>After adding the <code>Dictionary</code> type I started getting errors while converting <code>.xsd</code> to <code>.cs</code>:</p> <p><img src="https://i.stack.imgur.com/j4Qhi.png" alt="enter image description here"></p> <p>After adding <code>Dictionary</code> type why I am getting the error? </p> <p>How do I resolve it?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload