This commit is contained in:
2020-12-18 19:31:24 +00:00
parent 4e51e45e95
commit ddee772f08
8 changed files with 32 additions and 11 deletions

View File

@@ -1,11 +1,6 @@
using System.Collections.Generic;
using System;
using System.Globalization;
using System.Text;
using Newtonsoft.Json.Linq;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
namespace AyaNova.DataList
{
@@ -81,6 +76,20 @@ namespace AyaNova.DataList
map.Add(idColumnName, nOrdinal++);
}
}
//does it also have an openable AyaType column?
var ayaTypeColumnName = o.SqlAyTypeColumnName;
if (!string.IsNullOrWhiteSpace(ayaTypeColumnName))
{
if (!map.ContainsKey(ayaTypeColumnName))
{
if (firstColumnAdded)
sb.Append(", ");
sb.Append(ayaTypeColumnName);
firstColumnAdded = true;
map.Add(ayaTypeColumnName, nOrdinal++);
}
}
}
}
}