From d7737ca8c0996c9464994e8bc08f9318f0baf2fc Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 21 Dec 2020 18:02:53 +0000 Subject: [PATCH] --- server/AyaNova/DataList/DataListFetcher.cs | 2 +- server/AyaNova/biz/AyaFieldData.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/AyaNova/DataList/DataListFetcher.cs b/server/AyaNova/DataList/DataListFetcher.cs index 9dcce8d4..25361b1e 100644 --- a/server/AyaNova/DataList/DataListFetcher.cs +++ b/server/AyaNova/DataList/DataListFetcher.cs @@ -194,7 +194,7 @@ namespace AyaNova.DataList { var ordinal = SelectBuild.map[f.SqlColorColumnName]; if (!await dr.IsDBNullAsync(ordinal)) - AyaField.clr = dr.GetInt32(ordinal); + AyaField.clr = dr.GetString(ordinal); } row.Add(AyaField); diff --git a/server/AyaNova/biz/AyaFieldData.cs b/server/AyaNova/biz/AyaFieldData.cs index 3a2e6a9d..ef5e4544 100644 --- a/server/AyaNova/biz/AyaFieldData.cs +++ b/server/AyaNova/biz/AyaFieldData.cs @@ -16,6 +16,6 @@ namespace AyaNova.Biz [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] //https://www.newtonsoft.com/json/help/html/JsonPropertyPropertyLevelSetting.htm public int? ot { get; set; }//openable type [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] //https://www.newtonsoft.com/json/help/html/JsonPropertyPropertyLevelSetting.htm - public int? clr { get; set; }//color + public string clr { get; set; }//color } } \ No newline at end of file