Greetings,
In the master/detail scenario, I know that we have to link the master’s PK with the detail’s FK so that ASPNETMAKER will automatically pick the related detail records. But when using User ID security, without linking the user id from the master to the user id in the detail, it does not work!. I don’t know if this is the case for everybody or only my project though! This gave me a hard time and I learned it by trial and error. I hope someone would tell me if the followings are correct:
- We put a user id column in any table in which we want the user to see only their (or their child users’) records.
- We must not link the users’ table (using the user id) with any other table .
- For the User ID security scenario, when two tables are linked as master/detail, we must have another master/detail link created using the user id’s of the tables.So there will be two links between the master/detail, one for the original field (like order id) and one for the user id.
Thanks.