This project is read-only.

Collections not generated

Aug 9, 2011 at 8:48 AM

Hi there,

I want to user for data contract generation on RESTful webservices. When I generate the code for collection types, no collection will be generated, either way which options I select. For example, a snippet from the walkthrough:


<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="RestaurantData" targetNamespace="urn:thinktecture-com:demos:restaurantservice:data:v1"
	elementFormDefault="qualified" xmlns="urn:thinktecture-com:demos:restaurantservice:data:v1"
	xmlns:mstns="urn:thinktecture-com:demos:restaurantservice:data:v1" xmlns:xs="">
	<xs:complexType name="restaurantInfo">
			<xs:element name="restaurantID" type="xs:int" />
			<xs:element name="name" type="xs:string" />
	<xs:complexType name="restaurantsList">
			<xs:element name="restaurant" type="restaurantInfo" 
                        maxOccurs="unbounded" minOccurs="0" />

If I add this xsd to my project, right-click it and select "Generate data contract", only restaurantinfo.cs will be generated. What do I have to do to get the list-type also?