HighTechTalks DotNet Forums  

How to dynamically create DataRelations using GetSchema?

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss How to dynamically create DataRelations using GetSchema? in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
obiwanjacobi
 
Posts: n/a

Default How to dynamically create DataRelations using GetSchema? - 12-23-2007 , 12:34 AM






I'm working on some code that is to generate a complete DataSet given
a database connection (for now only Sql). I use GetSchema on the
connection to retrieve table and column information. Now I'm looking
for a way to create the DataRelations in the DataSet but I can find no
easy way to get the information I need for this from GetSchema (unless
I'm missing something).

There is a ForeignKeys collection that returns information about FK
constraints but there is no column information in there.

Is there a way to create DataRelations from collection information
returned from GetSchema?

Thanx,
--Marc

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.