protected override void InitParameter(NHExt.Runtime.Proxy.ProxyContext ctx) { base.InitParameter(ctx); if(ctx != null){ if(this.CallerType == NHExt.Runtime.Session.CallerTypeEnum.WCF){ this._ForbitDTO = NHExt.Runtime.Serialize.XmlSerialize.DeSerialize<THU.LabSystemBE.Deploy.ForbidUserDTO >(ctx.ParamList[0].ToString()); ctx.ParamList[0] = this._ForbitDTO; } else{ if(ctx.ParamList.Count > 0){ this._ForbitDTO = (THU.LabSystemBE.Deploy.ForbidUserDTO )ctx.ParamList[0]; }else{ ctx.ParamList.Add(this._ForbitDTO); } } } }
public override void SetValue(object obj, string memberName) { switch(memberName){ case "ForbitDTO" : this._ForbitDTO = this.TransferValue<THU.LabSystemBE.Deploy.ForbidUserDTO>(obj); break; default: base.SetValue(obj,memberName); break; } }
public new virtual THU.LabSystemBE.Deploy.ForbidUserDTO ToDTO() { THU.LabSystemBE.Deploy.ForbidUserDTO dto = new THU.LabSystemBE.Deploy.ForbidUserDTO(); this.ToDTO(dto); return dto; }