Do you maybe know how can I determine whether an entity has references to it in other entities or not?
If I talk in SQL language, I mean, can I check if a Primary Key is a Foreign Key in certain tables.
I want to mark an entity object as IsDeleted(it's a property) only if it does not have any references to it from another tables, I want to avoid physically remove.
Thank you,