Пример #1
0
 private void ExportModulePostNavs(MixModules.ImportViewModel item, MixCmsContext context, IDbContextTransaction transaction)
 {
     ModulePostNavs.AddRange(item.GetPostNavs(context, transaction)
                             .Where(m => !ModulePostNavs.Any(n => n.PostId == m.PostId && n.ModuleId == m.ModuleId)));
     foreach (var nav in ModulePostNavs)
     {
         if (!Posts.Any(m => m.Id == nav.Post.Id && m.Specificulture == Specificulture))
         {
             Posts.Add(nav.Post);
         }
     }
 }
Пример #2
0
        private void ExportModuleDatas(MixModules.ImportViewModel item, MixCmsContext context, IDbContextTransaction transaction)
        {
            var getDataResult = MixModuleDatas.ImportViewModel.Repository
                                .GetModelListBy(m => m.ModuleId == item.Id &&
                                                m.Specificulture == item.Specificulture
                                                , context, transaction);

            if (getDataResult.IsSucceed)
            {
                ModuleDatas.AddRange(getDataResult.Data);
            }
        }
Пример #3
0
        private void ProcessModuleData(MixModules.ImportViewModel item, MixCmsContext context, IDbContextTransaction transaction)
        {
            var getDataResult = MixModuleDatas.ReadViewModel.Repository
                                .GetModelListBy(m => m.ModuleId == item.Id && m.Specificulture == item.Specificulture
                                                , "Priority", 0, null, null
                                                , context, transaction);

            if (getDataResult.IsSucceed)
            {
                //getDataResult.Data.JsonItems = new List<JObject>();
                //getDataResult.Data.Items.ForEach(d => getDataResult.Data.JsonItems.Add(d.JItem));
                item.Data = getDataResult.Data;
            }

            GetAdditionalData(item.Id.ToString(), MixEnums.MixAttributeSetDataType.Module, context, transaction);
        }
		private void ProcessModuleData(Mix.Cms.Lib.ViewModels.MixModules.ImportViewModel item, MixCmsContext context, IDbContextTransaction transaction)
		{
			V_0 = new SiteStructureViewModel.u003cu003ec__DisplayClass50_0();
			V_0.item = item;
			stackVariable3 = ViewModelBase<MixCmsContext, MixModuleData, Mix.Cms.Lib.ViewModels.MixModuleDatas.ReadViewModel>.Repository;
			V_2 = Expression.Parameter(Type.GetTypeFromHandle(//