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); }); }
public void OutputTypeInheritanceDescriptor() { TypeInheritanceDescriptor descriptor = new TypeInheritanceDescriptor(typeof(Employee)); OutLine(descriptor.ToString(), ConsoleColor.Cyan); }