예제 #1
0
 public void RenameProvider(SharePointProviderInfo sharePointProviderInfo, string newTitle)
 {
     using (var dbDao = new SharpBoxAccountDao(CoreContext.TenantManager.GetCurrentTenant().TenantId, FileConstant.DatabaseId))
     {
         dbDao.UpdateProviderInfo(sharePointProviderInfo.ID, newTitle, sharePointProviderInfo.RootFolderType);
         sharePointProviderInfo.UpdateTitle(newTitle); //This will update cached version too
     }
 }
예제 #2
0
 public void RenameProvider(SharpBoxProviderInfo sharpBoxProviderInfo, string newTitle)
 {
     using (var dbDao = new SharpBoxAccountDao(TenantProvider.CurrentTenantID, FileConstant.DatabaseId))
     {
         dbDao.UpdateProviderInfo(sharpBoxProviderInfo.ID, newTitle);
         sharpBoxProviderInfo.UpdateTitle(newTitle); //This will update cached version too
     }
 }