public static void MapAttributeDefinitionGroup(AttributeGroup source, AttributeDefinitionGroup destination, AbstractLookupHelper lookupHelper, AbstractMappingEngine masterMapper)
 {
     destination.Alias       = source.Alias;
     destination.Id          = (Guid)source.Id.Value;
     destination.Name        = source.Name;
     destination.DateCreated = source.UtcCreated;
     destination.Ordinal     = source.Ordinal;
 }
Пример #2
0
        public AttributeGroup MapAttributeGroupDefinition(AttributeDefinitionGroup attributeDefinitionGroup, AbstractLookupHelper lookupHelper, AbstractMappingEngine masterMapper)
        {
            // TODO:
            // - Attributes and AttributeDefinitions navigator on the stack model will be tricky to track changes
            // - Add Ordinal to Rdbms model
            var mapped = new AttributeGroup();

            MapAttributeGroupDefinition(attributeDefinitionGroup, mapped, lookupHelper, masterMapper);
            return(mapped);
        }
Пример #3
0
        public void MapAttributeGroupDefinition(AttributeDefinitionGroup source, AttributeGroup destination, AbstractLookupHelper lookupHelper, AbstractMappingEngine masterMapper)
        {
            destination.Alias      = source.Alias;
            destination.Id         = (HiveId)source.Id;
            destination.Name       = source.Name;
            destination.UtcCreated = source.DateCreated;
            destination.Ordinal    = source.Ordinal;

            //destination.AttributeDefinitions.Clear();

            //foreach (var attributeDefinition in source.AttributeDefinitions)
            //{
            //    destination.AttributeDefinitions.Add(MapAttributeDefinition(attributeDefinition));
            //}
        }