public void LoadFromConfiguration(ObjectSchemaConfigurationElementCollection schemaElements) { if (schemaElements != null) { foreach (ObjectSchemaConfigurationElement elem in schemaElements) { this.Add(new SchemaInfo(elem)); } this.Sort((x, y) => x.SortOrder - y.SortOrder); } }
public void AppendPropertiesFromConfiguration(ObjectSchemaConfigurationElementCollection objectsConfig) { if (objectsConfig != null) { foreach (ObjectSchemaConfigurationElement objectElem in objectsConfig) { SchemaDefine sd = new SchemaDefine(objectElem); if (this.ContainsKey(sd.Name) == false) { this.Add(sd); } } } }
protected string SchemaTypeToString(string schemaName) { this.schemaDefinitions = this.schemaDefinitions ?? ObjectSchemaSettings.GetConfig().Schemas; return this.schemaDefinitions[schemaName].Description ?? schemaName; }
public SchemaInfoCollection(ObjectSchemaConfigurationElementCollection schemaElements) { LoadFromConfiguration(schemaElements); }
protected string SchemaTypeToString(string schemaName) { this.schemaDefinitions = this.schemaDefinitions ?? ObjectSchemaSettings.GetConfig().Schemas; return(this.schemaDefinitions[schemaName].Description ?? schemaName); }
public void LoadFromConfiguration(ObjectSchemaConfigurationElementCollection objectsConfig) { this.Clear(); AppendPropertiesFromConfiguration(objectsConfig); }
public SchemaDefineCollection(ObjectSchemaConfigurationElementCollection objectsConfig) { AppendPropertiesFromConfiguration(objectsConfig); }