Solved

Typed Dataset

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
daypilot scheduler 3 26
asp day pilot 3 18
Help with consolidating excel files using VB.net 2 21
transaction in asp.net, sql server 6 31
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 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