NET Code Generator
Properties
Basic Tasks > Creating New Templates > Properties

Each entity or class has a list of properties.  Each property has an associated Name, DataType, and ControlType

 

Example:

Property Name:  <#= prop.Name #>

Property Column Name:  <#= prop.ColumnName#>

Property Description:  <#= prop.Description #>
Property Data Type:  <#= prop.DataType #>
Property Control Name:  <#= prop.ControlName #>
Property Control Type:  <#= prop.ControlType #>

 

The following tables list the members exposed by CodeGenProp.

Public Constructors
Top
" -->
Public Constructors
  Name Description
Public Constructor  
Top
Protected Constructors
Top
" -->Private Constructors
Top
" -->Public Fields
Top
" -->Protected Fields
Top
" -->Private Fields
Top
" -->Public Properties
Top
" -->
Public Properties
  Name Description
Public Property If true, this property allows null  
Public Property Gets the name of the column.  
Public Property Gets the name of the control.  
Public Property The data type of the property  
Public Property The data type of the property  
Public Property Gets the name with spaces in between the words  
Public Property Gets or sets the entity (class).  
Public Property Gets a value indicating whether this instance is an input control.  
Public Property Gets a value indicating whether this instance is primary key.  
Public Property The maximum length of varchar, char, etc  
Public Property Gets or sets the name.  
Public Property Gets the name in camel case.  
Public Property Gets the name in camel case plural.  
Public Property Gets the name in camel case singular.  
Public Property Gets the name in lower case.  
Public Property Gets the name in pascal case.  
Public Property Gets the name in pascal case plural.  
Public Property Gets the name in pascal case singular.  
Public Property Gets the name in screaming snake case (upper case underscore).  
Public Property Gets the name in snake case (lower case underscore).  
Public Property Gets or sets the project.  
Public Property It subtracts the last word of the control name and gives a camel case name  
Public Property It gets the last word of the control name for the value