Ejemplo n.º 1
0
        public BasePropertyDefinition GetDefinition(string name)
        {
            BasePropertyDefinition result = null;

            result = SystemPropertyDefinitions.SingleOrDefault(x => x.Value == name);

            if (result == null)
            {
                result = CustomPropertyDefinitions.SingleOrDefault(x => x.Value == name);
            }

            return(result);
        }
Ejemplo n.º 2
0
        public BasePropertyDefinition GetDefinitionByLabel(string text)
        {
            BasePropertyDefinition result = null;

            result = SystemPropertyDefinitions.SingleOrDefault(x => x.Text.Equals(text, System.StringComparison.OrdinalIgnoreCase));

            if (result == null)
            {
                result = CustomPropertyDefinitions.SingleOrDefault(x => x.Text.Equals(text, System.StringComparison.OrdinalIgnoreCase));
            }

            return(result);
        }
Ejemplo n.º 3
0
 public PropertySchema AddSystemDefinition(SystemPropertyDefinition definition)
 {
     SystemPropertyDefinitions.Add(definition);
     return(this);
 }