private static void DropAll <T>(DropObjectsStatement drop, Namespace <T> ns) { foreach (var x in drop.Objects) { var name = x.BaseIdentifier.Value; if (drop.IsIfExists) { ns.DropIfExists(name); } else { ns.Drop(name); } } }