This commit is contained in:
2020-02-11 21:57:31 +00:00
parent f41d89facd
commit aa0c73d415
3 changed files with 7 additions and 7 deletions

View File

@@ -178,10 +178,10 @@ namespace AyaNova.Api.Controllers
}
List<KeyValuePair<string, string>> ret = new List<KeyValuePair<string, string>>();
ret.Add(new KeyValuePair<string, string>(typeof(UserType).ToString(), "AyaNova user account types"));
ret.Add(new KeyValuePair<string, string>(typeof(AuthorizationRoles).ToString(), "AyaNova user account role types"));
ret.Add(new KeyValuePair<string, string>(typeof(AyaType).ToString(), "All AyaNova object types"));
ret.Add(new KeyValuePair<string, string>(typeof(UiFieldDataType).ToString(), "Types of data used in AyaNova for display and formatting UI purposes"));
ret.Add(new KeyValuePair<string, string>(StringUtil.TrimTypeName(typeof(UserType).ToString()), "AyaNova user account types"));
ret.Add(new KeyValuePair<string, string>(StringUtil.TrimTypeName(typeof(AuthorizationRoles).ToString()), "AyaNova user account role types"));
ret.Add(new KeyValuePair<string, string>(StringUtil.TrimTypeName(typeof(AyaType).ToString()), "All AyaNova object types"));
ret.Add(new KeyValuePair<string, string>(StringUtil.TrimTypeName(typeof(UiFieldDataType).ToString()), "Types of data used in AyaNova for display and formatting UI purposes"));
return Ok(ApiOkResponse.Response(ret, true));
}

View File

@@ -59,7 +59,7 @@ namespace AyaNova.DataList
LtKey = "WidgetUserType",
FieldKey = "widgetusertype",
UiFieldDataType = (int)UiFieldDataType.Enum,
EnumType = typeof(UserType).ToString(),
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(UserType).ToString()),
SqlValueColumnName = "awidget.usertype"
});
FieldDefinitions.Add(new AyaDataListFieldDefinition

View File

@@ -45,7 +45,7 @@ namespace AyaNova.DataList
LtKey = "AuthorizationRoles",
FieldKey = "userroles",
UiFieldDataType = (int)UiFieldDataType.Enum,
EnumType = typeof(AuthorizationRoles).ToString(),
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AuthorizationRoles).ToString()),
SqlValueColumnName = "auser.roles"
});
@@ -54,7 +54,7 @@ namespace AyaNova.DataList
LtKey = "UserType",
FieldKey = "usertype",
UiFieldDataType = (int)UiFieldDataType.Enum,
EnumType = typeof(UserType).ToString(),
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(UserType).ToString()),
SqlValueColumnName = "auser.usertype"
});