Search Results for

    Show / Hide Table of Contents

    Class DataPropertyDefinition

    Derives from PropertyDefinition and represents simple values or collections of simple values. This can take on any of the data types listed in the DataPropertyType enumeration.

    Inheritance
    System.Object
    SchemaElement
    PropertyDefinition
    DataPropertyDefinition
    Implements
    IFdoSerializable
    IExpressionPropertySource
    Inherited Members
    PropertyDefinition.Parent
    PropertyDefinition.IFdoSerializable.ReadXml(XmlNode, XmlNamespaceManager)
    PropertyDefinition.IFdoSerializable.WriteXml(XmlDocument, XmlNode)
    PropertyDefinition.Parse(XmlNode, XmlNamespaceManager)
    PropertyDefinition.Clone(PropertyDefinition)
    SchemaElement.Name
    SchemaElement.Description
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: OSGeo.MapGuide.MaestroAPI.Schema
    Assembly: OSGeo.MapGuide.MaestroAPI.dll
    Syntax
    public class DataPropertyDefinition : PropertyDefinition, IFdoSerializable, IExpressionPropertySource

    Constructors

    | Improve this Doc View Source

    DataPropertyDefinition(String, String)

    Initializes a new instance of the DataPropertyDefinition class.

    Declaration
    public DataPropertyDefinition(string name, string description)
    Parameters
    Type Name Description
    System.String name

    The name.

    System.String description

    The description.

    Properties

    | Improve this Doc View Source

    DataType

    Gets the data type of this property

    Declaration
    public DataPropertyType DataType { get; set; }
    Property Value
    Type Description
    DataPropertyType
    | Improve this Doc View Source

    DefaultValue

    Gets or sets the default value. Applies only to string data types

    Declaration
    public string DefaultValue { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionType

    Gets the expression data type

    Declaration
    public override ExpressionDataType ExpressionType { get; }
    Property Value
    Type Description
    ExpressionDataType
    Overrides
    PropertyDefinition.ExpressionType
    | Improve this Doc View Source

    IsAutoGenerated

    Gets or sets whether this property automatically generates a value on insert.

    Declaration
    public bool IsAutoGenerated { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsNullable

    Gets or sets whether this property accepts null values

    Declaration
    public bool IsNullable { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsReadOnly

    Gets or sets whether this property is read-only

    Declaration
    public bool IsReadOnly { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Length

    Gets or sets the length of this property. Applies only to string and blob/clob data types

    Declaration
    public int Length { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Precision

    Gets or sets the precision of this property. Applies only to decimal data types

    Declaration
    public int Precision { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Scale

    Gets or sets the scale of this property. Applies only to decimal data types.

    Declaration
    public int Scale { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Type

    Gets the type of Property Definition

    Declaration
    public override PropertyDefinitionType Type { get; }
    Property Value
    Type Description
    PropertyDefinitionType
    Overrides
    PropertyDefinition.Type

    Methods

    | Improve this Doc View Source

    GetDataType(String)

    Gets the type of the data.

    Declaration
    public static DataPropertyType GetDataType(string xmlType)
    Parameters
    Type Name Description
    System.String xmlType

    Type of the XML.

    Returns
    Type Description
    DataPropertyType
    | Improve this Doc View Source

    IsNumericType()

    Convenience method to get whether this data property is numeric

    Declaration
    public bool IsNumericType()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ReadXml(XmlNode, XmlNamespaceManager)

    Set the current element's content from the current XML node

    Declaration
    protected override void ReadXml(XmlNode node, XmlNamespaceManager mgr)
    Parameters
    Type Name Description
    System.Xml.XmlNode node
    System.Xml.XmlNamespaceManager mgr
    Overrides
    PropertyDefinition.ReadXml(XmlNode, XmlNamespaceManager)
    | Improve this Doc View Source

    WriteXml(XmlDocument, XmlNode)

    Writes the current element's content

    Declaration
    protected override void WriteXml(XmlDocument doc, XmlNode currentNode)
    Parameters
    Type Name Description
    System.Xml.XmlDocument doc
    System.Xml.XmlNode currentNode
    Overrides
    PropertyDefinition.WriteXml(XmlDocument, XmlNode)

    Implements

    IFdoSerializable
    IExpressionPropertySource
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2009 - 2022 Jackie Ng