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;
        }
예제 #2
0
 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);
         }
     }
 }