public void AppendFromPropertyDefineCollection(SchemaPropertyDefineCollection propDefinitions)
        {
            foreach (SchemaPropertyDefine propDef in propDefinitions)
            {
                SchemaPropertyValue pv = new SchemaPropertyValue(propDef);

                this.Add(pv);
            }
        }
 public void MergePropertiesDefine(SchemaPropertyDefineCollection propertiesConfig)
 {
     if (propertiesConfig != null)
     {
         foreach (SchemaPropertyDefine propertyDefine in propertiesConfig)
         {
             if (this.ContainsKey(propertyDefine.Name))
             {
                 if (propertyDefine.AllowOverride)
                 {
                     this.Remove(pd => pd.Name == propertyDefine.Name);
                     this.Add(propertyDefine);
                 }
             }
             else
             {
                 this.Add(propertyDefine);
             }
         }
     }
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="propDefinitions"></param>
        public void InitFromPropertyDefineCollection(SchemaPropertyDefineCollection propDefinitions)
        {
            this.Clear();

            AppendFromPropertyDefineCollection(propDefinitions);
        }