internal override void DeleteLinkedObjects(bool isChildOfDeleted) { // Clear folder cache: Handler.Tree.FolderCache.Clear(); // Remove row-level-security for this table: RowLevelSecurity.Clear(); if (Handler.CompatibilityLevel >= 1400) { ObjectLevelSecurity.Clear(); } base.DeleteLinkedObjects(isChildOfDeleted); }
internal override void DeleteLinkedObjects(bool isChildOfDeleted) { // Clear folder cache: FolderCache.Clear(); // Remove row-level-security for this table: RowLevelSecurity.Clear(); if (Handler.CompatibilityLevel >= 1400) { ObjectLevelSecurity.Clear(); } foreach (var r in Model.Roles) { if (r.TablePermissions.Contains(Name)) { r.TablePermissions[this].Delete(); } } base.DeleteLinkedObjects(isChildOfDeleted); }
// Another Mimic of the SetRLSID Method. public Insert SetRLSID(RowLevelSecurity rowLevelSecurity) { return(SetRLSID(rowLevelSecurity.Type, rowLevelSecurity.ID)); }