private void CreateObjects <T>(List <T> objects, GenerateSqlObjectOptions options, Action <T> create) { if (options.Create) { objects.ForEach(x => create(x)); } }
private void DropObjects <T>(List <T> objects, GenerateSqlObjectOptions options, Action <T, bool> drop) { if (options.Drop) { objects.ForEach(x => drop(x, options.CheckExists)); } }