コード例 #1
0
					V_1 = Expression.Parameter(Type.GetTypeFromHandle(// 
					// Current member / type: Mix.Cms.Lib.Models.Cms.MixAttributeSetData Mix.Cms.Lib.ViewModels.MixAttributeSetDatas.FormViewModel::ParseModel(Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)
					// Exception in: Mix.Cms.Lib.Models.Cms.MixAttributeSetData ParseModel(Mix.Cms.Lib.Models.Cms.MixCmsContext,Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction)
					// Specified method is not supported.
					// 
					// mailto: [email protected]


		private void ParseModelValue(JToken property, Mix.Cms.Lib.ViewModels.MixAttributeSetValues.UpdateViewModel item)
		{
			if (item.get_Field().get_IsEncrypt())
			{
				V_0 = Newtonsoft.Json.Linq.Extensions.Value<JObject>(property);
				item.set_StringValue(V_0.ToString(0, Array.Empty<JsonConverter>()));
				stackVariable91 = item;
				stackVariable94 = V_0.get_Item("data");
				if (stackVariable94 != null)
				{
					stackVariable95 = stackVariable94.ToString();
				}
				else
				{
					dummyVar0 = stackVariable94;
					stackVariable95 = null;
				}
				stackVariable91.set_EncryptValue(stackVariable95);
				stackVariable96 = item;
				stackVariable99 = V_0.get_Item("key");
				if (stackVariable99 != null)
				{
					stackVariable100 = stackVariable99.ToString();
				}
				else
				{
					dummyVar1 = stackVariable99;
					stackVariable100 = null;
				}
				stackVariable96.set_EncryptKey(stackVariable100);
				return;
			}
			switch (item.get_Field().get_DataType())
			{
				case 0:
				case 4:
				case 5:
				case 7:
				case 8:
				case 9:
				case 10:
				case 11:
				case 12:
				case 13:
				case 14:
				case 15:
				case 17:
				case 19:
				case 20:
				case 21:
				{
				Label0:
					item.set_StringValue(Newtonsoft.Json.Linq.Extensions.Value<string>(property));
					break;
				}
				case 1:
				{
					item.set_DateTimeValue(Newtonsoft.Json.Linq.Extensions.Value<DateTime?>(property));
					item.set_StringValue(Newtonsoft.Json.Linq.Extensions.Value<string>(property));
					return;
				}
				case 2:
				{
					item.set_DateTimeValue(Newtonsoft.Json.Linq.Extensions.Value<DateTime?>(property));
					item.set_StringValue(Newtonsoft.Json.Linq.Extensions.Value<string>(property));
					return;
				}
				case 3:
				{
					item.set_DateTimeValue(Newtonsoft.Json.Linq.Extensions.Value<DateTime?>(property));
					item.set_StringValue(Newtonsoft.Json.Linq.Extensions.Value<string>(property));
					return;
				}
				case 6:
				{
					item.set_DoubleValue(Newtonsoft.Json.Linq.Extensions.Value<double?>(property));
					item.set_StringValue(Newtonsoft.Json.Linq.Extensions.Value<string>(property));
					return;
				}
				case 16:
				{
					V_1 = Newtonsoft.Json.Linq.Extensions.Value<string>(property);
					if (!StringExtension.IsBase64(V_1))
					{
						item.set_StringValue(V_1);
						return;
					}
					stackVariable40 = new Mix.Cms.Lib.ViewModels.MixMedias.UpdateViewModel();
					stackVariable40.set_Specificulture(this.get_Specificulture());
					stackVariable40.set_Status(2);
					stackVariable44 = new FileViewModel();
					stackVariable44.set_FileStream(V_1);
					stackVariable44.set_Extension(".png");
					stackVariable44.set_Filename(Guid.NewGuid().ToString());
					stackVariable44.set_FileFolder("Attributes");
					stackVariable40.set_MediaFile(stackVariable44);
					V_3 = ((ViewModelBase<MixCmsContext, MixMedia, Mix.Cms.Lib.ViewModels.MixMedias.UpdateViewModel>)stackVariable40).SaveModel(true, null, null);
					if (!V_3.get_IsSucceed())
					{
						break;
					}
					item.set_StringValue(V_3.get_Data().get_FullPath());
					this.get_Obj().set_Item(item.get_AttributeFieldName(), JToken.op_Implicit(item.get_StringValue()));
					return;
				}
				case 18:
				{
					item.set_BooleanValue(Newtonsoft.Json.Linq.Extensions.Value<bool?>(property));
					item.set_StringValue(Newtonsoft.Json.Linq.Extensions.Value<string>(property).ToLower());
					return;
				}
				case 22:
				{
					item.set_IntegerValue(Newtonsoft.Json.Linq.Extensions.Value<int?>(property));
					item.set_StringValue(Newtonsoft.Json.Linq.Extensions.Value<string>(property));
					return;
				}
				case 23:
				{
					item.set_StringValue(Newtonsoft.Json.Linq.Extensions.Value<string>(property));
					return;
				}
				default:
				{
					goto Label0;
				}
			}
			return;
		}