protected override void UpdateResult(object outerEntity, object innerResult) { global::ReportDataService2Data.Implementation.ReportDataClass outerReportDataClass = outerEntity as global::ReportDataService2Data.Implementation.ReportDataClass; global::Central.Data.Services.ReportDataClass innerReportDataClass = innerResult as global::Central.Data.Services.ReportDataClass; if ((outerReportDataClass != null) && (innerReportDataClass != null)) { outerReportDataClass.Id = innerReportDataClass.Id; outerReportDataClass.Name = innerReportDataClass.Name; outerReportDataClass.Total = innerReportDataClass.Total; return; } }
protected override object ConvertEntity(object outerEntity) { global::ReportDataService2Data.Implementation.ReportDataClass reportDataClass = outerEntity as global::ReportDataService2Data.Implementation.ReportDataClass; if (reportDataClass != null) { global::Central.Data.Services.ReportDataClass result = new global::Central.Data.Services.ReportDataClass(); result.Id = reportDataClass.Id; result.Name = reportDataClass.Name; result.Total = reportDataClass.Total; return(result); } return(null); }