MeaningOfLights_dB2GraphQL_Net/src/DatabaseSchemaReader/Conversion/ViewColumnConverter.cs
using System.Data;
using DatabaseSchemaReader.Conversion.KeyMaps;

namespace DatabaseSchemaReader.Conversion
{
    class ViewColumnConverter : ColumnConverter
    {
        public ViewColumnConverter(DataTable columnsDataTable) : base(columnsDataTable)
        {
        }

        protected override ColumnsKeyMap LoadColumnsKeyMap()
        {
            var columnsKeyMap = new ColumnsKeyMap(ColumnsDataTable);
            if (ColumnsDataTable.Columns.Contains("VIEW_NAME")) columnsKeyMap.TableKey = "VIEW_NAME";
            return columnsKeyMap;
        }
    }
}
