Esempio n. 1
0
        /// <summary>
        /// Determines if select statement can be wildcard. This is the case when all columns are selected and no aliases are defined.
        /// </summary>
        private bool DetermineIfSelectCanBeWildcard()
        {
            var hasUnselectedColumns = Selects.Any(c => !c.IsSelected);
            var hasAliases           = false;

            if (!hasUnselectedColumns)
            {
                hasAliases = Selects.Any(c => !string.IsNullOrWhiteSpace(c.Alias));
            }

            return(!hasUnselectedColumns && !hasAliases);
        }