[odb-users] Defining the foreign key

Anaswara Nair anaswara.nn at gmail.com
Thu Oct 6 06:40:48 EDT 2016


Hi,

I have two classes A and B. I defined `pragma db object` above the class
declaration of both the classes. Now I want to declare the primary key of
A(an integer value) as B's foreign key. On searching I found `shared_ptr`
can be used for the purpose. Can you make it more clear.

Thankyou


More information about the odb-users mailing list