Book a Demo

Author Topic: Using Automation to Import DB Schema from ODBC  (Read 4277 times)

Derek Poulin

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Using Automation to Import DB Schema from ODBC
« on: September 17, 2008, 07:59:51 am »
I'm trying to use automation to import our database schemas into EA, but I don't see how to do it. Does the automation API support this? Can someone please point me in the right direction?

Thanks,
Derek

jkorman

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Using Automation to Import DB Schema from ODBC
« Reply #1 on: September 17, 2008, 08:26:35 am »
Create a class diagram
Right click for a context menu - select [Import DB schema from ODBC]
brings up a dialog where you need to select "stuff"

Works pretty well!

Jim

Derek Poulin

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Using Automation to Import DB Schema from ODBC
« Reply #2 on: September 17, 2008, 08:37:34 am »
Clarification: I would like to do this programmatically, not manually. That is, I want to create a Windows console application that calls into the EA automation API:

        static void Main(string[] args)
        {
            // Get app settings:
            string project = ConfigurationManager.AppSettings["Project"];

            // Open EA:
            EA.Repository repository = new EA.RepositoryClass();

            // Open the project specified in the app's configuration file:
            repository.OpenFile(project);

            // Do the Import DB Schema from ODBC:
            // ???
        }

Any ideas how to do this?

Thanks,
Derek

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Using Automation to Import DB Schema from ODBC
« Reply #3 on: September 17, 2008, 09:08:59 am »
I believe this is not possible, at least not yet.

This remains a significant omission in the EA feature set. I have no idea if Sparx is working on it; even if they are it might be a "future version" thing.

Perhaps you could request this feature. The more of us who do, the greater chance Sparx will recognize it as a priority.

To do so, follow the Feature Request link below the Support link near the bottom of any forum page.

David
No, you can't have it!