Exemplo n.º 1
0
        /// <summary>
        /// Retrieves the persistable properties of <see cref="T:Dataweb.NShape.Advanced.FormatModelMapping" />.
        /// </summary>
        new public static IEnumerable <EntityPropertyDefinition> GetPropertyDefinitions(int version)
        {
            foreach (EntityPropertyDefinition propDef in ModelMappingBase.GetPropertyDefinitions(version))
            {
                yield return(propDef);
            }

            yield return(new EntityFieldDefinition("MappingType", typeof(int)));

            yield return(new EntityFieldDefinition("format", typeof(string)));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Retrieves the persistable properties of <see cref="T:Dataweb.NShape.Advanced.NumericModelMapping" />.
        /// </summary>
        new public static IEnumerable <EntityPropertyDefinition> GetPropertyDefinitions(int version)
        {
            foreach (EntityPropertyDefinition propDef in ModelMappingBase.GetPropertyDefinitions(version))
            {
                yield return(propDef);
            }

            yield return(new EntityFieldDefinition("MappingType", typeof(int)));

            yield return(new EntityFieldDefinition("Intercept", typeof(float)));

            yield return(new EntityFieldDefinition("Slope", typeof(float)));

            yield return(new EntityInnerObjectsDefinition("Layers", "Core.Layer",
                                                          new string[] { "Id", "Name", "Title", "LowerVisibilityThreshold", "UpperVisibilityThreshold" },
                                                          new Type[] { typeof(int), typeof(string), typeof(string), typeof(int), typeof(int) }));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Retrieves the persistable properties of <see cref="T:Dataweb.NShape.Advanced.StyleModelMapping" />.
        /// </summary>
        new public static IEnumerable <EntityPropertyDefinition> GetPropertyDefinitions(int version)
        {
            foreach (EntityPropertyDefinition propDef in ModelMappingBase.GetPropertyDefinitions(version))
            {
                yield return(propDef);
            }

            yield return(new EntityFieldDefinition("MappingType", typeof(int)));

            yield return(new EntityFieldDefinition("DefaultStyleType", typeof(int)));

            yield return(new EntityFieldDefinition("DefaultStyle", typeof(object)));

            yield return(new EntityInnerObjectsDefinition("ValueRanges", "Core.Range",
                                                          new string[] { "Value", "StyleType", "Style" },
                                                          new Type[] { typeof(float), typeof(int), typeof(object) }));
        }