public Schema Copy(Repository orginalRepository, string sourceName, string destName) { Schema schema = _schemaProvider.Copy(orginalRepository, sourceName, destName); Sync(Site.Current, orginalRepository, delegate(Repository targetRepository) { _schemaProvider.Copy(targetRepository, sourceName, destName); }); return(schema); }
public Schema Copy(Repository repository, string sourceName, string destName) { try { return(inner.Copy(repository, sourceName, destName)); } finally { ClearObjectCache(new Schema(repository, destName)); } }