/// <summary> /// 复制(深拷贝) /// </summary> protected override void toCopy(BaseData data) { base.toCopy(data); if (!(data is AuctionSoldLogData)) { return; } AuctionSoldLogData mData = (AuctionSoldLogData)data; if (mData.role != null) { this.role = (RoleSimpleShowData)mData.role.clone(); } else { this.role = null; nullObjError("role"); } if (mData.item != null) { this.item = (ItemData)mData.item.clone(); } else { this.item = null; nullObjError("item"); } this.price = mData.price; }
/// <summary> /// 是否数据一致 /// </summary> protected override bool toDataEquals(BaseData data) { if (!base.toDataEquals(data)) { return(false); } AuctionSoldLogData mData = (AuctionSoldLogData)data; if (mData.role != null) { if (this.role == null) { return(false); } if (!this.role.dataEquals(mData.role)) { return(false); } } else { if (this.role != null) { return(false); } } if (mData.item != null) { if (this.item == null) { return(false); } if (!this.item.dataEquals(mData.item)) { return(false); } } else { if (this.item != null) { return(false); } } if (this.price != mData.price) { return(false); } return(true); }
/// <summary> /// 复制(潜拷贝) /// </summary> protected override void toShadowCopy(BaseData data) { base.toShadowCopy(data); if (!(data is AuctionSoldLogData)) { return; } AuctionSoldLogData mData = (AuctionSoldLogData)data; this.role = mData.role; this.item = mData.item; this.price = mData.price; }