protected CClass GetTableDto(IEnumerable <KTable> allTables, KTable table, string tableName)
        {
            if (string.IsNullOrEmpty(tableName))
            {
                return(null);
            }

            var converter = new CTableToCClassConverter();
            var @class    = converter.Convert(table.GeneratedTable, allTables.Select(kt => kt.GeneratedTable), false);

            @class.ClassName  += "Dto";
            @class.DerivedFrom = table;
            //overrite the default namespace logic
            @class.Namespace = new CNamespace
            {
                NamespaceName =
                    $"{_dataLayerKProject.CompanyName}.{_dataLayerKProject.ProjectName}{_dataLayerKProject.NamespaceSuffix}.Data.Entities"
            };
            return(@class);
        }
        private CClass GetViewDto(CView view)
        {
            if (string.IsNullOrEmpty(view.ViewName))
            {
                return(null);
            }

            var preConverter = new CViewToCTableConverter();
            var table        = preConverter.Convert(view);

            var converter = new CTableToCClassConverter();
            var @class    = converter.Convert(table, null, false);

            //overrite the default namespace logic
            @class.Namespace = new CNamespace
            {
                NamespaceName =
                    $"{_dataLayerKProject.CompanyName}.{_dataLayerKProject.ProjectName}{_dataLayerKProject.NamespaceSuffix}.Data.Entities"
            };
            return(@class);
        }