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()
     };
 }
Example #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;
            }));
        }
Example #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;
                });
        }