Home All Groups Group Topic Archive Search About

xsd schema file always creates two tables at drag/drop, why?

Author
22 Feb 2006 9:37 AM
Axel Dahmen
Hi,

I'm a Newbie to xsd when it comes to the VStudio designer (VS 2k3). Now I
have a problem I don't know how to deal with, perhaps one of you can help me
with this:

Two weeks ago I've created a test Web Application project and added a xsd
file to it. Then when dragging tables from the Server Explorer to the xsd
file, it created a perfect <xs:element> element and showed it as one single
table in designer view. The typed DataSet class then provided me with all
necessary DataTables and DataColumns.

Two days ago I've created a Class Library project. But if I create a new xsd
file in there and try to drag a table from Server Explorer to the xsd file,
now there are always *two* connected tables added in design view... Huh??
Why don't I just get the requested table to create my DataSet correctly?

The upper of the two connected tables is of type "document". What I can see
from the xml view is that in my original text project, the first element had
a

     <xs:element name="User" msdata:IsDataSet="true">

attribute, whereas in my new project it has a

     <xs:element name="Document" msdata:Locale="de-DE">

attribute.

Can anybody please help me out on this? I want to understand what's the
reason for the difference and how I can have the final Class Library project
"behave" like my test Web Application project to make it easy for me to
create a typed DataSet from my database.

TIA,
Axel Dahmen

AddThis Social Bookmark Button