This commit is contained in:
2022-01-12 22:56:11 +00:00
parent d2b44945b7
commit 6430da202f
2 changed files with 7 additions and 4 deletions

View File

@@ -55,8 +55,7 @@ namespace AyaNova.DataList
public string SqlATypeColumnName { get; set; }//column to fetch the AyaType openabel for this field to set it dynamically instead of preset
[JsonIgnore]
public string SqlColorColumnName { get; set; }//column to fetch the color if applicable to this field
public DataListFieldDefinition()
{
//most common defaults
@@ -65,11 +64,12 @@ namespace AyaNova.DataList
IsSortable = true;
IsRowId = false;
IsMeta = false;
Translate=false;
Translate = false;
//Set openable object type to no type which is the default and means it's not a link to another object
AType = (int)AyaType.NoType;
SqlATypeColumnName = null;//must be null as that is checked against specifically
SqlColorColumnName = null;//must be null to be ignored properly
SqlColorColumnName = null;//must be null to be ignored properly
}
//Get column to query for display name or use FieldName if there is no difference