Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 // Another Mimic of the SetRLSID Method.
 public Insert SetRLSID(RowLevelSecurity rowLevelSecurity)
 {
     return(SetRLSID(rowLevelSecurity.Type, rowLevelSecurity.ID));
 }