Book a Demo

Author Topic: Getting information from model stored in EAdb repo  (Read 3584 times)

mariusz

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Getting information from model stored in EAdb repo
« on: October 02, 2009, 06:58:22 pm »
Hi
I'd like to write a very simple desktop application(C#, Automatic Interface), which can connect with my EA, and get some information from my model.

In doc I have found quite simple code:

 EA.Repository r = new EA.RepositoryClass();                      
 r.OpenFile("c:\\eatest.eap");

It works, but it isn't enough for me. My model is stored in database repository(Oracle) not  in file. How can I connect to this?

Thanks for any suggestions

Best regards
mario
 
In documentation I haven't found  any method

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Getting information from model stored in EAdb
« Reply #1 on: October 02, 2009, 07:33:10 pm »
you have to pass the connectionstring to the OpenFile method.
I think that is documented in the FAQS on the website

Geert

mariusz

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Getting information from model stored in EAdb
« Reply #2 on: October 03, 2009, 02:58:00 am »
Thanks Geert. Your answer was very helpfull. It works :)

Best regards

mario