/// <summary> /// Create EntityData From Entity - used by ubf /// </summary> public OperatorsDTOData ToEntityData(OperatorsDTOData data, IDictionary dict) { if (data == null) { data = new OperatorsDTOData(); } if (dict == null) { dict = new Hashtable(); } else { if (dict.Contains(this)) { data = (OperatorsDTOData)dict[this]; return(data); } } dict[this] = data; data.OperatorsID = this.OperatorsID; data.OperatorsCode = this.OperatorsCode; data.OperatorsName = this.OperatorsName; return(data); }
//used by ubf.. public void FromEntityData(OperatorsDTOData data, IDictionary dict) { if (data == null) { return; } if (dict == null) { dict = new Hashtable(); } dict[data] = this; DeSerializeKey(data); this.OperatorsID = data.OperatorsID; this.OperatorsCode = data.OperatorsCode; this.OperatorsName = data.OperatorsName; }
/// <summary> /// Copy Entity From EntityData /// </summary> public void FromEntityData(OperatorsDTOData data) { this.FromEntityData(data, new Hashtable()); }
//反序化Key到Data的ID中 --由FromEntityData自动调用,不处理层次关系 private void DeSerializeKey(OperatorsDTOData data) { }