private static void AddToChildren(IConfigSet configSet, ConfigurationContext context, IEnvironment environment) { foreach (var childConfigSet in configSet.ChildConfigSets) { var c = childConfigSet; var child = environment.CreateChild(context, ref c); context.SaveChanges(); AddToChildren(c, context, child); } }
private static void AddToChildren(IConfigSet configSet, ConfigurationContext context, IEnvironment environment) { foreach (var childConfigSet in configSet.ChildConfigSets) { var c = childConfigSet; var child = environment.CreateChild(context, ref c); context.SaveChanges(); AddToChildren(c, context, child); } }