Ejemplo n.º 1
0
			V_0 = Expression.Parameter(System.Type.GetTypeFromHandle(// 
			// Current member / type: System.Void Mix.Cms.Lib.ViewModels.MixModules.UpdateViewModel::LoadAttributeData(Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)
			// Exception in: System.Void LoadAttributeData(Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)
			// Specified method is not supported.
			// 
			// mailto: [email protected]


		private void LoadAttributeFields(MixCmsContext context, IDbContextTransaction transaction)
		{
			if (!string.IsNullOrEmpty(this.get_AttributeData().get_Id()))
			{
				this.set_Attributes(new List<Mix.Cms.Lib.ViewModels.MixAttributeFields.UpdateViewModel>());
				V_2 = this.get_AttributeData().get_Data().get_Values().GetEnumerator();
				try
				{
					while (V_2.MoveNext())
					{
						V_3 = V_2.get_Current();
						if (V_3.get_Field() == null)
						{
							continue;
						}
						this.get_Attributes().Add(V_3.get_Field());
					}
				}
				finally
				{
					((IDisposable)V_2).Dispose();
				}
			}
			else
			{
				stackVariable21 = ViewModelBase<MixCmsContext, MixAttributeSet, Mix.Cms.Lib.ViewModels.MixAttributeSets.UpdateViewModel>.Repository;
				V_1 = Expression.Parameter(System.Type.GetTypeFromHandle(// 
Ejemplo n.º 2
0
		public override MixAttributeSetData ParseModel(MixCmsContext _context = null, IDbContextTransaction _transaction = null)
		{
			if (string.IsNullOrEmpty(this.get_Id()))
			{
				this.set_Id(Guid.NewGuid().ToString());
				this.set_CreatedDateTime(DateTime.get_UtcNow());
			}
			stackVariable5 = this.get_Fields();
			if (stackVariable5 == null)
			{
				dummyVar0 = stackVariable5;
				stackVariable5 = new List<Mix.Cms.Lib.ViewModels.MixAttributeFields.UpdateViewModel>();
			}
			this.set_Fields(stackVariable5);
			this.set_Values(new List<Mix.Cms.Lib.ViewModels.MixAttributeSetValues.ImportViewModel>());
			V_1 = this.get_Fields().GetEnumerator();
			try
			{
				while (V_1.MoveNext())
				{
					V_2 = V_1.get_Current();
					stackVariable15 = new Mix.Cms.Lib.ViewModels.MixAttributeSetValues.ImportViewModel();
					stackVariable15.set_AttributeFieldId(V_2.get_Id());
					stackVariable15.set_AttributeFieldName(V_2.get_Name());
					stackVariable15.set_StringValue(V_2.get_DefaultValue());
					stackVariable15.set_Priority(V_2.get_Priority());
					stackVariable15.set_Field(V_2);
					V_3 = stackVariable15;
					V_3.set_Priority(V_2.get_Priority());
					V_3.set_DataType(V_2.get_DataType());
					V_3.set_AttributeSetName(V_2.get_AttributeSetName());
					if (this.get_Data().get_Item(V_3.get_AttributeFieldName()) != null && V_3.get_Field().get_DataType() != 23)
					{
						this.ParseModelValue(this.get_Data().get_Item(V_3.get_AttributeFieldName()), V_3);
					}
					this.get_Values().Add(V_3);
				}
			}
			finally
			{
				((IDisposable)V_1).Dispose();
			}
			return this.ParseModel(_context, _transaction);
		}