This commit is contained in:
2021-02-05 23:56:18 +00:00
parent f9dd2b96e7
commit 32abdf3475

View File

@@ -112,7 +112,11 @@ namespace AyaNova.DataList
{ {
DataListField AyaField = new DataListField(); DataListField AyaField = new DataListField();
var cust = dr.GetString(qSelect.map[f.GetSqlValueColumnName()]); //could be null
var rawValue = dr.GetValue(qSelect.map[f.GetSqlValueColumnName()]);
if (rawValue != null)
{
string cust = rawValue.ToString();
if (!string.IsNullOrWhiteSpace(cust)) if (!string.IsNullOrWhiteSpace(cust))
{ {
JObject j = JObject.Parse(cust); JObject j = JObject.Parse(cust);
@@ -127,6 +131,9 @@ namespace AyaNova.DataList
AyaField.v = null; AyaField.v = null;
row.Add(AyaField); row.Add(AyaField);
}else{
AyaField.v=null;
}
} }
/* /*