Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Typed Dataset

Posted on 2011-02-26
3
Medium Priority
?
471 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 1000 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 1000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

963 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