Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / January 2006

Tip: Looking for answers? Try searching our database.

Mapping in ADO.NET 2 Dataset Designer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
A.M-SG - 12 Jan 2006 18:21 GMT
Hi,

Where is the mapping designer in VS2005 DataSet designer? I cannot find it!

Thank you,
Alan
Kevin Yu [MSFT] - 13 Jan 2006 02:25 GMT
Hi Alan,

What do you mean by mapping? Do you mean the column mapping? If so, you
just need to change the column name in the TableAdapter and the mapping
code will be generated automatically.

Kevin Yu
Signature

=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

A.M-SG - 13 Jan 2006 17:55 GMT
Yes I mean column mapping.

Your solution wroks for DataTables that are generated from a database query
(TableAdapter)

My question is related to DataSets that are not attached to any database
objects. You just drag and drop a data set from tool box within dataset
designer. There is no mapping available for them.

Thank you for help,
Alan

> Hi Alan,
>
[quoted text clipped - 6 lines]
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
Kevin Yu [MSFT] - 16 Jan 2006 04:46 GMT
Hi Alan,

If you designed the DataSet in the DataSet designer, you will always need a
DataAdapter to fill data. The column mapping is a part of the DataAdapter,
not DataSet.

So when you drag and drop a DataAdapter onto the designer, you will find a
TableMappings property in the property window. Click on the three dots and
you'll see a dialog box. Then you can set the TableMappings and
ColumnMappings for each table. HTH.

Kevin Yu
Signature

=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.