Class InfoTemplate.InfoTemplateProperty
- Namespace
- CMS.DataEngine.Generators
- Assembly
- CMS.DataEngine.dll
A property description for the info T4 runtime template.
[Obsolete("The code generation API is not intended to be used directly. Use the code generator command line-based tool instead.")]
[ObsoleteSince(28, 0)]
public class InfoTemplate.InfoTemplateProperty
- Inheritance
-
objectInfoTemplate.InfoTemplateProperty
- Extension Methods
Constructors
InfoTemplateProperty(FieldInfo)
Creates a new instance initialized using the specified field info.
public InfoTemplateProperty(FieldInfo field)
Parameters
field
FieldInfoField info
Properties
AllowEmpty
Gets a value that indicates if the property is not required to have a value.
public bool AllowEmpty { get; }
Property Value
- bool
Comment
Gets the property comment.
public string Comment { get; }
Property Value
- string
DataType
The data type of the property.
public string DataType { get; }
Property Value
- string
DefaultValue
Gets a default value of the property.
public string DefaultValue { get; }
Property Value
- string
GetMethod
Gets the name of the method to be used to obtain the property value in the property get method.
public string GetMethod { get; }
Property Value
- string
HasDatabaseRepresentation
Indicates if property has database representation.
public bool HasDatabaseRepresentation { get; set; }
Property Value
- bool
Name
Gets the property name.
public string Name { get; }
Property Value
- string
ReferenceToObjectType
ObjectType to which the given field refers (for example as a foreign key).
public string ReferenceToObjectType { get; set; }
Property Value
- string
ReferenceType
Type of the reference (used only when ReferenceToObjectType is set).
public string ReferenceType { get; set; }
Property Value
- string
Type
Gets the property type.
public string Type { get; }
Property Value
- string
TypeDefaultValue
Gets a default value of the type.
public string TypeDefaultValue { get; }
Property Value
- string
UseGetValue
Gets a value that indicates if the GetValue method is to be used in the property get method.
public bool UseGetValue { get; }
Property Value
- bool