Walaa wrote:
When you synchronize or share the data between different systems, would it retain its original SystemID values?
If so, then I see no problems what so ever in your scenario.
How are the FK's configured?
What do you mean by that?
Well, we found an earlier forum post here (http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=9564&HighLight=1) which left the impression with us that it was either not possible, or not easy, to configure a composite FK-PK relationship in LLBLGen.
In other words, if User has-one Job:
- your Users table has a composite PK of (id, system_id)
- your Jobs table then has a composite FK to Users of (user_id, user_system_id)
Is that clear? Furthermore for many-to-many relationships, you would have the same thing in the join tables of course:
- your Users table has a composite PK of (id, system_id)
- your Addresses table has a composite PK of (id, system_id)
- your AddressUsers join table has either
- a composite PK of (user_id, user_system_id, address_id, address_system_id)
- or, two composite FKs of (user_id, user_system_id), (address_id, address_system_id) with a unique constraint on the pair of them
How does one configure these sorts of relationships in LLBLGen?
Thanks,
-Marc