Ejemplo n.º 1
0
        private void TryDrop(Database db, params Type[] types)
        {
            HashSet <Type> unique = new HashSet <Type>();

            types.Each(type =>
            {
                TypeInheritanceDescriptor inheritance = new TypeInheritanceDescriptor(type);
                inheritance.Chain.Each(t =>
                {
                    unique.Add(t.Type);
                });
            });
            unique.Each(type =>
            {
                TryDrop(db, type.Name);
            });
        }
Ejemplo n.º 2
0
        public void OutputTypeInheritanceDescriptor()
        {
            TypeInheritanceDescriptor descriptor = new TypeInheritanceDescriptor(typeof(Employee));

            OutLine(descriptor.ToString(), ConsoleColor.Cyan);
        }