This commit is contained in:
2020-04-02 20:16:28 +00:00
parent 33ef1ae4fa
commit eb2ed910bc
2 changed files with 13 additions and 3 deletions

View File

@@ -141,6 +141,14 @@ dr.GetOrdinal("customfields");
AyaFieldData AyaField = new AyaFieldData(); AyaFieldData AyaField = new AyaFieldData();
AyaField.v = dr.GetValue(SelectBuild.map[f.GetSqlValueColumnName()]); AyaField.v = dr.GetValue(SelectBuild.map[f.GetSqlValueColumnName()]);
if (f.IsRowId)
{
AyaField.rid = true;
}
else
{
AyaField.rid = null;
}
if (f.SqlIdColumnName != null) if (f.SqlIdColumnName != null)
{ {

View File

@@ -11,5 +11,7 @@ namespace AyaNova.Biz
public object v { get; set; } public object v { get; set; }
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] //https://www.newtonsoft.com/json/help/html/JsonPropertyPropertyLevelSetting.htm [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] //https://www.newtonsoft.com/json/help/html/JsonPropertyPropertyLevelSetting.htm
public long? i { get; set; } public long? i { get; set; }
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] //https://www.newtonsoft.com/json/help/html/JsonPropertyPropertyLevelSetting.htm
public bool? rid { get; set; }
} }
} }