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.
Inherited Members
Namespace: OSGeo.MapGuide.MaestroAPI.Schema
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public class DataPropertyDefinition : PropertyDefinition, IFdoSerializable, IExpressionPropertySource
Constructors
| Improve this Doc View SourceDataPropertyDefinition(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 SourceDataType
Gets the data type of this property
Declaration
public DataPropertyType DataType { get; set; }
Property Value
Type | Description |
---|---|
DataPropertyType |
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 |
ExpressionType
Gets the expression data type
Declaration
public override ExpressionDataType ExpressionType { get; }
Property Value
Type | Description |
---|---|
ExpressionDataType |
Overrides
| Improve this Doc View SourceIsAutoGenerated
Gets or sets whether this property automatically generates a value on insert.
Declaration
public bool IsAutoGenerated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsNullable
Gets or sets whether this property accepts null values
Declaration
public bool IsNullable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsReadOnly
Gets or sets whether this property is read-only
Declaration
public bool IsReadOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |
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 |
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 |
Type
Gets the type of Property Definition
Declaration
public override PropertyDefinitionType Type { get; }
Property Value
Type | Description |
---|---|
PropertyDefinitionType |
Overrides
Methods
| Improve this Doc View SourceGetDataType(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 |
IsNumericType()
Convenience method to get whether this data property is numeric
Declaration
public bool IsNumericType()
Returns
Type | Description |
---|---|
System.Boolean |
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
| Improve this Doc View SourceWriteXml(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 |