var t = CardtypeBizCom.GetInstance().GetModelByPK(421);
var t2 = Mapper.Map<Cardtype, Cardtype>(t);//id没被过滤 //copyObject(t, t2); t2.Cardtypename = "4444"; CardtypeBizCom.GetInstance().Add(t2)
本文共 191 字,大约阅读时间需要 1 分钟。
var t = CardtypeBizCom.GetInstance().GetModelByPK(421);
var t2 = Mapper.Map<Cardtype, Cardtype>(t);//id没被过滤 //copyObject(t, t2); t2.Cardtypename = "4444"; CardtypeBizCom.GetInstance().Add(t2)
转载地址:http://lrngx.baihongyu.com/