1
gryphon644 created
Hello, i've used the RAD tool to generate a new entity (Group.json)
here is my Json file
{
"IsRegenerate": false,
"MenuPosition": "main",
"RelativeNamespace": "Groups",
"EntityName": "Group",
"EntityNamePlural": "Groups",
"TableName": "Groups",
"PrimaryKeyType": "int",
"BaseClass": "Entity",
"EntityHistory": false,
"AutoMigration": false,
"UpdateDatabase": false,
"CreateUserInterface": true,
"CreateViewOnly": true,
"CreateExcelExport": true,
"PagePermission": {
"Host": true,
"Tenant": true
},
"Properties": [{
"Name": "GroupName",
"Type": "string",
"MaxLength": 35,
"MinLength": 2,
"Range": {
"IsRangeSet": false,
"MinimumValue": 0,
"MaximumValue": 0
},
"Required": true,
"Nullable": false,
"Regex": "",
"UserInterface": {
"List": true,
"AdvancedFilter": true,
"CreateOrUpdate": true
}
},
{
"Name": "GroupeType",
"Type": "grouptype",
"MaxLength": 35,
"MinLength": 2,
"Range": {
"IsRangeSet": false,
"MinimumValue": 0,
"MaximumValue": 0
},
"Required": false,
"Nullable": false,
"Regex": "",
"UserInterface": {
"List": true,
"AdvancedFilter": true,
"CreateOrUpdate": true
}
},
{
"Name": "ServicingAgent",
"Type": "string",
"MaxLength": 35,
"MinLength": 2,
"Range": {
"IsRangeSet": false,
"MinimumValue": 0,
"MaximumValue": 0
},
"Required": false,
"Nullable": false,
"Regex": "",
"UserInterface": {
"List": true,
"AdvancedFilter": true,
"CreateOrUpdate": true
}
},
{
"Name": "FedTaxID",
"Type": "string",
"MaxLength": 35,
"MinLength": 2,
"Range": {
"IsRangeSet": false,
"MinimumValue": 0,
"MaximumValue": 0
},
"Required": false,
"Nullable": false,
"Regex": "",
"UserInterface": {
"List": true,
"AdvancedFilter": true,
"CreateOrUpdate": true
}
}
],
"NavigationProperties": [{
"Namespace": "A365.Authorization.Users",
"ForeignEntityName": "User",
"IdType": "long",
"IsNullable": true,
"PropertyName": "UserId",
"DisplayPropertyName": "Name",
"DuplicationNumber": 0,
"RelationType": "single"
}],
"EnumDefinitions": [{
"Name": "grouptype",
"Namespace": "A365",
"EnumProperties": [{
"Name": "Prospect",
"Value": 1
},
{
"Name": "Client",
"Value": 2
},
{
"Name": "X-Client",
"Value": 3
},
{
"Name": "X-Prospect",
"Value": 4
},
{
"Name": "Agency",
"Value": 5
}
]
}]
}
The Generation went well then i tried to run my Web.Host project but VS showed this issue! From what i've seen, the code doesn't see the enum (GroupType) and i wonder why? Can anybody help please?