I use linq for sql and I have many tables with foreign keys leading to UserId.
Is it possible to clear some of these external tables when deleting.
For example, I want the user profile (another table) to be deleted automatically with the user, but not with messages from forum users.
Is this possible, or do I need to handle this with code?
source
share