标签:
参数传入时发现对象的属性变成空了,如下图
[HttpPost] public JsonResult CreateOrder(O_CreateOrder obj) { IOrderBiz GOBiz = Ioc.IoCFactory.Instance.CurrentContainer.Resolve<IOrderBiz>("GroupOrder"); ICreateOrder createobject = GOBiz.CreateOrder<O_CreateOrder>(obj); return Json(createobject,null,null); }
解决办法
usingSystem.ComponentModel.DataAnnotations;
[DisplayFormat(ConvertEmptyStringToNull = false)] public string GuaranteeType { get; set; }
标签:
原文地址:http://www.cnblogs.com/kfsmqoo/p/4551493.html