Solved

Typed Dataset

Posted on 2011-02-26
3
456 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

20 Experts available now in Live!

Get 1:1 Help Now