Пример #1
0
        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);
        }
Пример #2
0
 public Schema Copy(Repository repository, string sourceName, string destName)
 {
     try
     {
         return(inner.Copy(repository, sourceName, destName));
     }
     finally
     {
         ClearObjectCache(new Schema(repository, destName));
     }
 }