Ejemplo n.º 1
0
        protected override void MergeInternal(AbstractDefinition definition)
        {
            var def = (AttributeDefinition)definition;

            if (def.IsPrimaryIdAttribute || def.IsPrimaryImageAttribute || def.IsPrimaryNameAttribute || def.KeyNames.Any())
            {
                IsSelected = true;
            }
        }
Ejemplo n.º 2
0
        protected override void MergeInternal(AbstractDefinition definition)
        {
            var def = definition as EntityDefinition;

            if (def == null)
            {
                return;
            }

            LogicalCollectionName = def.LogicalCollectionName;

            IsLoaded = definition.IsLoaded;

            _attributes.AddRange(def.AttributesCollection.Definitions);

            _additionalClasses.AddRange(def.AdditionalClassesCollection.Definitions);

            _additionalInfos.AddRange(def.AdditionalInfoCollection.Definitions);
        }
Ejemplo n.º 3
0
        protected override void MergeInternal(AbstractDefinition definition)
        {
            var def = (EnumDefinition)definition;

            Values.Merge(def.Values);
        }
Ejemplo n.º 4
0
 protected override void MergeInternal(AbstractDefinition definition)
 {
     Attributes.Merge(((ClassDefinition)definition).Attributes);
 }