Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 internal static Field Update(Field item) => DefaultRepository.Update <Field, FieldDAL>(item);
Esempio n. 4
0
 /// <summary>
 /// Обновляет информацию о контенте
 /// </summary>
 internal static Content Update(Content content) => DefaultRepository.Update <Content, ContentDAL>(content);
Esempio n. 5
0
 internal static NotificationObjectFormat UpdateNotificationTemplateFormat(NotificationObjectFormat item) => DefaultRepository.Update <NotificationObjectFormat, ObjectFormatDAL>(item);
Esempio n. 6
0
 internal static StatusType UpdateProperties(StatusType statusType) => DefaultRepository.Update <StatusType, StatusTypeDAL>(statusType);
Esempio n. 7
0
 internal static Page UpdatePageProperties(Page page) => DefaultRepository.Update <Page, PageDAL>(page);
Esempio n. 8
0
 internal static PageTemplate UpdatePageTemplateProperties(PageTemplate pageTemplate) => DefaultRepository.Update <PageTemplate, PageTemplateDAL>(pageTemplate);
Esempio n. 9
0
 internal static Notification UpdateProperties(Notification notification) => DefaultRepository.Update <Notification, NotificationsDAL>(notification);
Esempio n. 10
0
 internal static VisualEditorStyle UpdateStyleProperties(VisualEditorStyle visualEditorStyle) => DefaultRepository.Update <VisualEditorStyle, VeStyleDAL>(visualEditorStyle);
Esempio n. 11
0
 internal static ObjectFormat UpdateObjectFormatProperties(ObjectFormat objectFormat) => DefaultRepository.Update <ObjectFormat, ObjectFormatDAL>(objectFormat);
Esempio n. 12
0
 /// <summary>
 /// Обновляет информацию о сайте
 /// </summary>
 /// <param name="site">информация о сайте</param>
 /// <returns>информация о сайте</returns>
 internal static Site Update(Site site) => DefaultRepository.Update <Site, SiteDAL>(site);