public InheritedAttributeGroup(AttributeGroup attributeGroup, EntitySchema schema) : base(attributeGroup.Alias, attributeGroup.Name, attributeGroup.Ordinal) { Id = attributeGroup.Id; UtcCreated = attributeGroup.UtcCreated; UtcModified = attributeGroup.UtcModified; UtcStatusChanged = attributeGroup.UtcStatusChanged; Schema = schema; }
private void EnsureAttributeDefsRemoved(AttributeGroup item) { using (new WriteLockDisposable(_attribLocker)) { // Delete items that belonged to this group var forRemoval = _attributeDefinitions.Where(x => x.AttributeGroup.Alias == item.Alias).ToArray(); foreach (var attributeDefinition in forRemoval) { _attributeDefinitions.Remove(attributeDefinition); } } }