protected override Folder UpdateInDb(Folder folder) { using (var scope = new QPConnectionScope()) { Common.UpdateSiteSubFoldersPath(scope.DbConnection, folder.Id, folder.Path, QPContext.CurrentUserId, DateTime.Now); } return(DefaultRepository.Update <SiteFolder, SiteFolderDAL>((SiteFolder)folder)); }
internal static BllObject UpdateObjectProperties(BllObject bllObject) { var oldObject = GetObjectPropertiesById(bllObject.Id); var result = DefaultRepository.Update <BllObject, ObjectDAL>(bllObject); ManageObjectType(bllObject, oldObject, result); DeleteDefaultValues(result.Id); SetDefaultValues(bllObject.DefaultValues, result.Id); return(result); }
internal static Field Update(Field item) => DefaultRepository.Update <Field, FieldDAL>(item);
/// <summary> /// Обновляет информацию о контенте /// </summary> internal static Content Update(Content content) => DefaultRepository.Update <Content, ContentDAL>(content);
internal static NotificationObjectFormat UpdateNotificationTemplateFormat(NotificationObjectFormat item) => DefaultRepository.Update <NotificationObjectFormat, ObjectFormatDAL>(item);
internal static StatusType UpdateProperties(StatusType statusType) => DefaultRepository.Update <StatusType, StatusTypeDAL>(statusType);
internal static Page UpdatePageProperties(Page page) => DefaultRepository.Update <Page, PageDAL>(page);
internal static PageTemplate UpdatePageTemplateProperties(PageTemplate pageTemplate) => DefaultRepository.Update <PageTemplate, PageTemplateDAL>(pageTemplate);
internal static Notification UpdateProperties(Notification notification) => DefaultRepository.Update <Notification, NotificationsDAL>(notification);
internal static VisualEditorStyle UpdateStyleProperties(VisualEditorStyle visualEditorStyle) => DefaultRepository.Update <VisualEditorStyle, VeStyleDAL>(visualEditorStyle);
internal static ObjectFormat UpdateObjectFormatProperties(ObjectFormat objectFormat) => DefaultRepository.Update <ObjectFormat, ObjectFormatDAL>(objectFormat);
/// <summary> /// Обновляет информацию о сайте /// </summary> /// <param name="site">информация о сайте</param> /// <returns>информация о сайте</returns> internal static Site Update(Site site) => DefaultRepository.Update <Site, SiteDAL>(site);