/// <summary> /// Create EntityData From Entity - used by ubf /// </summary> public RequestResultDTOData ToEntityData(RequestResultDTOData data, IDictionary dict) { if (data == null) { data = new RequestResultDTOData(); } if (dict == null) { dict = new Hashtable(); } else { if (dict.Contains(this)) { data = (RequestResultDTOData)dict[this]; return(data); } } dict[this] = data; data.WSLogID = this.WSLogID; if (this.CallResult != null) { data.CallResult = this.CallResult.Value; } data.ResponseContent = this.ResponseContent; data.ErrorMessage = this.ErrorMessage; return(data); }
//used by ubf.. public void FromEntityData(RequestResultDTOData data, IDictionary dict) { if (data == null) { return; } if (dict == null) { dict = new Hashtable(); } dict[data] = this; DeSerializeKey(data); this.WSLogID = data.WSLogID; this.CallResult = UFIDA.U9.Cust.Pub.WSLogBE.CallResultEnum.GetFromValue(data.CallResult); this.ResponseContent = data.ResponseContent; this.ErrorMessage = data.ErrorMessage; }
/// <summary> /// Copy Entity From EntityData /// </summary> public void FromEntityData(RequestResultDTOData data) { this.FromEntityData(data, new Hashtable()); }
//反序化Key到Data的ID中 --由FromEntityData自动调用,不处理层次关系 private void DeSerializeKey(RequestResultDTOData data) { }