Author Topic: Can't use Repository.Execute(..) with VS 2012  (Read 5041 times)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Can't use Repository.Execute(..) with VS 2012
« on: June 21, 2012, 10:11:13 pm »
Hello,

I wanted to use the undocumented function Repository.Execute(..). I can't see it with Visual Studio. The other functions are available. In the Object Catalog it's marked gray as opposed to black for the other methods.

Is there a special trick to use this function?

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Can't use Repository.Execute(..) with VS 2012
« Reply #1 on: June 21, 2012, 10:30:33 pm »
You can't see it, but you can still use it.
Just type it out in full and it should work.

Somehow this is a kind of "gray area" undocumented operation.

Geert

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Can't use Repository.Execute(..) with VS 2012
« Reply #2 on: June 21, 2012, 10:40:11 pm »
Hello Geert,

thanks a lot. I just found the solution. I think a hidden method.

It works!

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Can't use Repository.Execute(..) with VS 2012
« Reply #3 on: June 22, 2012, 04:52:05 pm »
What does this 'secret' method do? I can't seem to see it on VS2012 Object browser?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Can't use Repository.Execute(..) with VS 2012
« Reply #4 on: June 22, 2012, 08:59:01 pm »
That why it's secret. It is an unsupported, though existing since long time method. You supply a SQL command to update/delete records. See also my scripting book.

q.