Solved

Add table adapter to .xsd file...

Posted on 2014-10-06
4
480 Views
Last Modified: 2014-10-08
The attached .xsd file has two data tables (Customer and CustomerOrders).

I am trying to duplicate this sample. The columns is CustomerOrders come from 3 tables. I am able to add Customer data table to .xsd file. But I have no idea how I can add CustomerOrders data table.

Question: How can I add CustomerOrders data table to my sample using wizards in vs2012?

xsd file
0
Comment
Question by:Mike Eghtebas
  • 3
4 Comments
 
LVL 33

Author Comment

by:Mike Eghtebas
ID: 40365793
Please see:

16 KB
xsd file

above the image. I should have started my question this way:

The image below (.xsd file) has two data tables (Customer and CustomerOrders)...

The reason I had the word "Attached" was I intended to upload the entire file but EE wouldn't allow files with extention .sln to be uploaded. That is why I settled uploading this image instead.

I have kind of figured out the answer myself. I suppose I wait for a while to get some feedback. And after I get my solution tested I could add it here.

Your feedback on this will be appreciated.

Mike
0
 
LVL 33

Accepted Solution

by:
Mike Eghtebas earned 0 total points
ID: 40368913
Right-click on the .xsd design view to select Add table adapter and use query builder to finalize SQL string and then save it.

Later you can rename the table adapter as CustomerOrders, for example. And also right-click on CustomerOrders to choos add relationship to connect CustomerOrders.CustomerID  to Customers.CustomerID.

Mike
0
 
LVL 33

Author Closing Comment

by:Mike Eghtebas
ID: 40368915
I figured out how to add a table adapter to .xsd file using wizard.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question