User923737044 posted
In a given table I have a foreign key column called Role (the type of this column is Role, which is the name of referenced table). Because it needs to be displayed in a specific way, I have "replaced" the Role column with a custom property called RoleWithDefault
(see below). I am perfectly able to display the contents of this property (by creating my own FieldTemplate) but I am not sure how to create a FieldTemplate for editing. The setter of RoleWithDefault is simply setting the Role property based on a
string value to be selected by the user. Can anyone point me in the right direction?
public class MyClass
{
public Role RoleWithDefault
{
// some get and set
}
}
public class MyClassMetadata
{
[ScaffoldColumn(true)]
[DisplayName("Role")]
public object RoleWithDefault { get; set; }
[ScaffoldColumn(false)]
public object Role { get; set; }
}