Solved

Typed Dataset

Posted on 2011-02-26
3
461 Views
Last Modified: 2012-08-14
Hi,
I have created a typed dataset in my c# project by draging the table onto dataset designer in the visual studio IDE. My XML Schema explorer look like this:

http://tempuri.org/RecordingDataset.xsd
     recordingdataset.xsd
       -<>RecordingDataset
              +<>Artist
               +<>Genre
Now I'm instatiating instance of RecordingDataset in another class but that instance doesn't give me access to these tables above Aritst or Genre, I mean no intellisence so I cannot use this dataset in my class.

Can somebody advice me plase.
0
Comment
Question by:ube100
  • 2
3 Comments
 
LVL 41

Accepted Solution

by:
graye earned 250 total points
ID: 34989695
Typically when you just drag-n-drop a table onto the DataSet designer, you end up with a DataTable and TableAdaper.  The DataTable is marked as Public behind the scenes, put the TableAdapters have a property in the designer called "Modifier" where  you can chance the scope.

Are you sure you didn't "go behind the scenes" and twiddle with the automatically generated code?
0
 

Author Comment

by:ube100
ID: 34990621
I have Attached the xsd file so you can have a look at it. It is throwing this eror:

Error      103      Custom tool error: Failed to generate code. Unable to convert input xml file content to a DataSet. Requested value 'Properties' was not found. Requested value 'Properties' was not found.      File:C:\Exercise\UnitTestBook\Recordings\Recordings\RecordingDataset.xsd      
                      Line 1
                      Column 1 RecordingDataSet.txt
0
 
LVL 41

Assisted Solution

by:graye
graye earned 250 total points
ID: 34991810
This certainly sounds like either a) you messed with it, or b) it got corrupted.

Either way, I'd suggest that you just cut your losses and start over with a new DataSet
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 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