Exemplo n.º 1
0
        public List <Index> GeneratAllIndexes()
        {
            var result = BackReference.GenerateIndexes(this).ToList();

            result.AddRange(Field.GenerateIndexes(this));

            if (MultiColumnIndexes != null)
            {
                result.AddRange(MultiColumnIndexes);
            }

            return(result);
        }
Exemplo n.º 2
0
        public List <TableIndex> GeneratAllIndexes()
        {
            var result = new List <TableIndex>
            {
                new PrimaryClusteredIndex(this)
            };

            result.AddRange(BackReference.GenerateIndexes(this));
            result.AddRange(Field.GenerateIndexes(this));

            if (MultiColumnIndexes != null)
            {
                result.AddRange(MultiColumnIndexes);
            }

            return(result);
        }