public override void ExpandView(MixCmsContext _context = null, IDbContextTransaction _transaction = null) { V_0 = new Mix.Cms.Lib.ViewModels.MixModules.UpdateViewModel.u003cu003ec__DisplayClass170_0(); V_0._context = _context; V_0.u003cu003e4__this = this; this.set_Cultures(Mix.Cms.Lib.ViewModels.MixModules.Helper.LoadCultures(this.get_Id(), this.get_Specificulture(), V_0._context, _transaction)); this.get_Cultures().ForEach(new Action<SupportedCulture>(V_0.u003cExpandViewu003eb__0)); this.set_Columns(new List<ModuleFieldViewModel>()); if (!string.IsNullOrEmpty(this.get_Fields())) { stackVariable26 = JArray.Parse(this.get_Fields()); } else { stackVariable26 = new JArray(); } V_1 = stackVariable26.GetEnumerator(); try { while (V_1.MoveNext()) { V_2 = V_1.get_Current(); stackVariable32 = new ModuleFieldViewModel(); stackVariable32.set_Name(CommonHelper.ParseJsonPropertyName(V_2.get_Item("name").ToString())); stackVariable40 = V_2.get_Item("title"); if (stackVariable40 != null) { stackVariable41 = stackVariable40.ToString(); } else { dummyVar0 = stackVariable40; stackVariable41 = null; } stackVariable32.set_Title(stackVariable41); if (V_2.get_Item("options") != null) { stackVariable48 = Newtonsoft.Json.Linq.Extensions.Value<JArray>(V_2.get_Item("options")); } else { stackVariable48 = new JArray(); } stackVariable32.set_Options(stackVariable48); if (V_2.get_Item("priority") != null) { stackVariable55 = Newtonsoft.Json.Linq.Extensions.Value<int>(V_2.get_Item("priority")); } else { stackVariable55 = 0; } stackVariable32.set_Priority(stackVariable55); stackVariable32.set_DataType(JToken.op_Explicit(V_2.get_Item("dataType"))); if (V_2.get_Item("width") != null) { stackVariable66 = Newtonsoft.Json.Linq.Extensions.Value<int>(V_2.get_Item("width")); } else { stackVariable66 = 3; } stackVariable32.set_Width(stackVariable66); if (V_2.get_Item("isUnique") != null) { stackVariable73 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_2.get_Item("isUnique")); } else { stackVariable73 = true; } stackVariable32.set_IsUnique(stackVariable73); if (V_2.get_Item("isRequired") != null) { stackVariable80 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_2.get_Item("isRequired")); } else { stackVariable80 = true; } stackVariable32.set_IsRequired(stackVariable80); if (V_2.get_Item("isDisplay") != null) { stackVariable87 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_2.get_Item("isDisplay")); } else { stackVariable87 = true; } stackVariable32.set_IsDisplay(stackVariable87); if (V_2.get_Item("isSelect") != null) { stackVariable94 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_2.get_Item("isSelect")); } else { stackVariable94 = false; } stackVariable32.set_IsSelect(stackVariable94); if (V_2.get_Item("isGroupBy") != null) { stackVariable101 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_2.get_Item("isGroupBy")); } else { stackVariable101 = false; } stackVariable32.set_IsGroupBy(stackVariable101); this.get_Columns().Add(stackVariable32); } } finally { if (V_1 != null) { V_1.Dispose(); } } this.LoadAttributes(V_0._context, _transaction); stackVariable110 = ViewModelBase<MixCmsContext, MixTemplate, Mix.Cms.Lib.ViewModels.MixTemplates.UpdateViewModel>.Repository; V_4 = Expression.Parameter(System.Type.GetTypeFromHandle(//
V_5 = Expression.Parameter(System.Type.GetTypeFromHandle(// // Current member / type: System.Collections.Generic.List`1<Mix.Domain.Core.Models.SupportedCulture> Mix.Cms.Lib.ViewModels.MixPosts.CreateViewModel::LoadCultures(System.String,Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction) // Exception in: System.Collections.Generic.List<Mix.Domain.Core.Models.SupportedCulture> LoadCultures(System.String,Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction) // Specified method is not supported. // // mailto: [email protected] private void LoadExtraProperties() { this.set_Columns(new List<ModuleFieldViewModel>()); if (!string.IsNullOrEmpty(this.get_ExtraFields())) { stackVariable7 = JArray.Parse(this.get_ExtraFields()); } else { stackVariable7 = new JArray(); } V_0 = stackVariable7.GetEnumerator(); try { while (V_0.MoveNext()) { V_1 = V_0.get_Current(); stackVariable13 = new ModuleFieldViewModel(); stackVariable13.set_Name(CommonHelper.ParseJsonPropertyName(V_1.get_Item("name").ToString())); stackVariable21 = V_1.get_Item("title"); if (stackVariable21 != null) { stackVariable22 = stackVariable21.ToString(); } else { dummyVar0 = stackVariable21; stackVariable22 = null; } stackVariable13.set_Title(stackVariable22); stackVariable25 = V_1.get_Item("defaultValue"); if (stackVariable25 != null) { stackVariable26 = stackVariable25.ToString(); } else { dummyVar1 = stackVariable25; stackVariable26 = null; } stackVariable13.set_DefaultValue(stackVariable26); if (V_1.get_Item("options") != null) { stackVariable33 = Newtonsoft.Json.Linq.Extensions.Value<JArray>(V_1.get_Item("options")); } else { stackVariable33 = new JArray(); } stackVariable13.set_Options(stackVariable33); if (V_1.get_Item("priority") != null) { stackVariable40 = Newtonsoft.Json.Linq.Extensions.Value<int>(V_1.get_Item("priority")); } else { stackVariable40 = 0; } stackVariable13.set_Priority(stackVariable40); stackVariable13.set_DataType(JToken.op_Explicit(V_1.get_Item("dataType"))); if (V_1.get_Item("width") != null) { stackVariable51 = Newtonsoft.Json.Linq.Extensions.Value<int>(V_1.get_Item("width")); } else { stackVariable51 = 3; } stackVariable13.set_Width(stackVariable51); if (V_1.get_Item("isUnique") != null) { stackVariable58 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_1.get_Item("isUnique")); } else { stackVariable58 = true; } stackVariable13.set_IsUnique(stackVariable58); if (V_1.get_Item("isRequired") != null) { stackVariable65 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_1.get_Item("isRequired")); } else { stackVariable65 = true; } stackVariable13.set_IsRequired(stackVariable65); if (V_1.get_Item("isDisplay") != null) { stackVariable72 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_1.get_Item("isDisplay")); } else { stackVariable72 = true; } stackVariable13.set_IsDisplay(stackVariable72); if (V_1.get_Item("isSelect") != null) { stackVariable79 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_1.get_Item("isSelect")); } else { stackVariable79 = false; } stackVariable13.set_IsSelect(stackVariable79); if (V_1.get_Item("isGroupBy") != null) { stackVariable86 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_1.get_Item("isGroupBy")); } else { stackVariable86 = false; } stackVariable13.set_IsGroupBy(stackVariable86); this.get_Columns().Add(stackVariable13); } } finally { if (V_0 != null) { V_0.Dispose(); } } this.set_Properties(new List<ExtraProperty>()); if (!string.IsNullOrEmpty(this.get_ExtraProperties())) { V_0 = JArray.Parse(this.get_ExtraProperties()).GetEnumerator(); try { while (V_0.MoveNext()) { V_3 = V_0.get_Current().ToObject<ExtraProperty>(); this.get_Properties().Add(V_3); } } finally { if (V_0 != null) { V_0.Dispose(); } } } return; }
public override void ExpandView(MixCmsContext _context = null, IDbContextTransaction _transaction = null) { V_0 = new SyncViewModel.u003cu003ec__DisplayClass178_0(); V_0.u003cu003e4__this = this; V_0._context = _context; V_0._transaction = _transaction; if (this.get_Id() == 0) { this.set_ExtraFields(MixService.GetConfig<string>("DefaultPostAttr")); } this.set_Cultures(this.LoadCultures(this.get_Specificulture(), V_0._context, V_0._transaction)); this.set_UrlAliases(this.GetAliases(V_0._context, V_0._transaction)); if (!string.IsNullOrEmpty(this.get_Tags())) { this.set_ListTag(JArray.Parse(this.get_Tags())); } this.set_Columns(new List<ModuleFieldViewModel>()); if (!string.IsNullOrEmpty(this.get_ExtraFields())) { stackVariable35 = JArray.Parse(this.get_ExtraFields()); } else { stackVariable35 = new JArray(); } V_5 = stackVariable35.GetEnumerator(); try { while (V_5.MoveNext()) { V_6 = V_5.get_Current(); stackVariable41 = new ModuleFieldViewModel(); stackVariable41.set_Name(CommonHelper.ParseJsonPropertyName(V_6.get_Item("name").ToString())); stackVariable49 = V_6.get_Item("title"); if (stackVariable49 != null) { stackVariable50 = stackVariable49.ToString(); } else { dummyVar0 = stackVariable49; stackVariable50 = null; } stackVariable41.set_Title(stackVariable50); if (V_6.get_Item("options") != null) { stackVariable57 = Newtonsoft.Json.Linq.Extensions.Value<JArray>(V_6.get_Item("options")); } else { stackVariable57 = new JArray(); } stackVariable41.set_Options(stackVariable57); if (V_6.get_Item("priority") != null) { stackVariable64 = Newtonsoft.Json.Linq.Extensions.Value<int>(V_6.get_Item("priority")); } else { stackVariable64 = 0; } stackVariable41.set_Priority(stackVariable64); stackVariable41.set_DataType(JToken.op_Explicit(V_6.get_Item("dataType"))); if (V_6.get_Item("width") != null) { stackVariable75 = Newtonsoft.Json.Linq.Extensions.Value<int>(V_6.get_Item("width")); } else { stackVariable75 = 3; } stackVariable41.set_Width(stackVariable75); if (V_6.get_Item("isUnique") != null) { stackVariable82 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_6.get_Item("isUnique")); } else { stackVariable82 = true; } stackVariable41.set_IsUnique(stackVariable82); if (V_6.get_Item("isRequired") != null) { stackVariable89 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_6.get_Item("isRequired")); } else { stackVariable89 = true; } stackVariable41.set_IsRequired(stackVariable89); if (V_6.get_Item("isDisplay") != null) { stackVariable96 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_6.get_Item("isDisplay")); } else { stackVariable96 = true; } stackVariable41.set_IsDisplay(stackVariable96); if (V_6.get_Item("isSelect") != null) { stackVariable103 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_6.get_Item("isSelect")); } else { stackVariable103 = false; } stackVariable41.set_IsSelect(stackVariable103); if (V_6.get_Item("isGroupBy") != null) { stackVariable110 = Newtonsoft.Json.Linq.Extensions.Value<bool>(V_6.get_Item("isGroupBy")); } else { stackVariable110 = false; } stackVariable41.set_IsGroupBy(stackVariable110); this.get_Columns().Add(stackVariable41); } } finally { if (V_5 != null) { V_5.Dispose(); } } this.set_Properties(new List<ExtraProperty>()); if (!string.IsNullOrEmpty(this.get_ExtraProperties())) { V_5 = JArray.Parse(this.get_ExtraProperties()).GetEnumerator(); try { while (V_5.MoveNext()) { V_8 = V_5.get_Current(); this.get_Properties().Add(V_8.ToObject<ExtraProperty>()); } } finally { if (V_5 != null) { V_5.Dispose(); } } } stackVariable121 = this.get_Templates(); if (stackVariable121 == null) { dummyVar1 = stackVariable121; stackVariable686 = ViewModelBase<MixCmsContext, MixTemplate, Mix.Cms.Lib.ViewModels.MixTemplates.UpdateViewModel>.Repository; V_9 = Expression.Parameter(System.Type.GetTypeFromHandle(//