Switch to: V12V11V10V9V8V7V6V5

Convert ObjectPtr to Foreign Key

Initial State

Let you have:


Final State

Assume you want to replace ObjectPtr link between tables Person and Phone with an PK+FK link. So you want to get:


API Method

It is easy to see that the most efficient way to do above loop is to do it inside of Valentina engine. So Valentina offers a special method for that:

VLink2.CopyLinksFrom( inSrcLink as VLink2 )

SQL Command

Valentina also offers the SQL command that is analog of VLink2.CopyLinks().

COPY LINKS FROM src_link_name TO dest_link_name