public static PropertyDefinitionSetProxy FromPropertyDefinitionSet(PropertyDefinitionSet propertyDefinitionSet)
 {
     return(new PropertyDefinitionSetProxy
     {
         Name = propertyDefinitionSet.Name,
         Order = propertyDefinitionSet.Order,
         IsEnabled = propertyDefinitionSet.IsEnabled,
         PropertyDefinitions = propertyDefinitionSet.PropertyDefinitions.Select(PropertyDefinitionProxy.FromPropertyDefinition).ToList()
     });
 }
 public static PropertyDefinitionSetProxy FromPropertyDefinitionSet(PropertyDefinitionSet propertyDefinitionSet)
 {
     return new PropertyDefinitionSetProxy
     {
         Name = propertyDefinitionSet.Name,
         Order = propertyDefinitionSet.Order,
         IsEnabled = propertyDefinitionSet.IsEnabled,
         PropertyDefinitions = propertyDefinitionSet.PropertyDefinitions.Select(PropertyDefinitionProxy.FromPropertyDefinition).ToList()
     };
 }
Exemplo n.º 3
0
        public PropertyDefinitionSet AddOrUpdateExtraPropertyDefinitionSet(PropertyDefinitionSet set)
        {
            return(_extraPropertyDefinitionSets.AddOrUpdate(
                       set.Name,
                       n => set,
                       (n, s) =>
            {
                s.PropertyDefinitions.MergeWith(set.PropertyDefinitions);

                if (set.Order < s.Order)
                {
                    s.Order = set.Order;
                }

                return s;
            }));
        }
Exemplo n.º 4
0
        public PropertyDefinitionSet AddOrUpdateExtraPropertyDefinitionSet(PropertyDefinitionSet set)
        {
            return _extraPropertyDefinitionSets.AddOrUpdate(
                set.Name,
                n => set,
                (n, s) =>
                {
                    s.PropertyDefinitions.MergeWith(set.PropertyDefinitions);

                    if (set.Order < s.Order)
                    {
                        s.Order = set.Order;
                    }

                    return s;
                });
        }