Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Reverse Engineering of Database (Read 2322 times)
Rahul Jain
Guest


Reverse Engineering of Database
Aug 31st, 2006 at 6:43am
Print Post  
Hi,

I would like to create my own Reverse Engineerng module using this control. I would like to have ability to create the tables and create the relations from the Database.

Has anybody done something like this. ? I need where do i start ? and How do I create the relations between tables using VB.

I will be using VB6.

Rahul
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Reverse Engineering of Database
Reply #1 - Aug 31st, 2006 at 6:55am
Print Post  
Hi,

The DBDesign sample project has an "Import" command that imports the schema of a database. That function is incomplete - it imports only the tables, but not the relations. I believe the .NET 2 DataSet object will let you import relations too.

Create a relation between Flowchart.NET tables by calling the

fc.CreateArrow(Table, int, Table, int)

overload of the CreateArrow method or

fc.Add(new Arrow(Table, int, Table, int))

I hope that helps,
Stoyan
« Last Edit: Aug 31st, 2006 at 9:08am by Stoyo »  
Back to top
 
IP Logged
 
Rahul Jain
Guest


Re: Reverse Engineering of Database
Reply #2 - Sep 1st, 2006 at 10:25am
Print Post  
Thanx a lot.. this gives me a head start.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Reverse Engineering of Database
Reply #3 - Sep 2nd, 2006 at 7:56am
Print Post  
Sorry, I did not notice this question was about FlowChartX/ActiveX. Only the FlowChart.NET DBDesign example shows how to import a DB schema, using ADO.NET. Anyway that's probably done in a similar way with the classic ADO, so you could check the sample installed with our .NET control:

https://mindfusion.eu/FCNetDemo.zip

With FlowChartX you can create relations between tables using the CreateRelation method.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint