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 " -->Name | Description | |
---|---|---|
CodeGenProp Constructor |
Name | Description | |
---|---|---|
AllowNull | If true, this property allows null | |
ColumnName | Gets the name of the column. | |
ControlName | Gets the name of the control. | |
ControlType | The data type of the property | |
DataType | The data type of the property | |
Description | Gets the name with spaces in between the words | |
Entity | Gets or sets the entity (class). | |
IsInputControl | Gets a value indicating whether this instance is an input control. | |
IsPrimaryKey | Gets a value indicating whether this instance is primary key. | |
Length | The maximum length of varchar, char, etc | |
Name | Gets or sets the name. | |
NameCamelCase | Gets the name in camel case. | |
NameCamelCasePlural | Gets the name in camel case plural. | |
NameCamelCaseSingular | Gets the name in camel case singular. | |
NameLower | Gets the name in lower case. | |
NamePascalCase | Gets the name in pascal case. | |
NamePascalCasePlural | Gets the name in pascal case plural. | |
NamePascalCaseSingular | Gets the name in pascal case singular. | |
NameScreamingSnake | Gets the name in screaming snake case (upper case underscore). | |
NameSnake | Gets the name in snake case (lower case underscore). | |
Project | Gets or sets the project. | |
RadioName | It subtracts the last word of the control name and gives a camel case name | |
RadioValue | It gets the last word of the control name for the value |