Solved

Add table adapter to .xsd file...

Posted on 2014-10-06
4
475 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now