public override TB_BookReadSign onDesrialize(BaseDataTableBuilder builder, System.Data.DataRow row, params object[] otherP) { TB_BookReadSignBuilder targetBuilder = builder as TB_BookReadSignBuilder; TB_BookReadSign tempBean = new TB_BookReadSign(); tempBean.ID = long.Parse(row[targetBuilder.ID].ToString()); tempBean.Date = row[targetBuilder.Date].ToString(); tempBean.ReadPlanID = long.Parse(row[targetBuilder.ReadPlanID].ToString()); tempBean.Other = row[targetBuilder.Other].ToString(); return(tempBean); }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_BookReadSign t) { TB_BookReadSignBuilder targetBuilder = builder as TB_BookReadSignBuilder; tempRow[targetBuilder.ID] = t.ID.ToString(); tempRow[targetBuilder.Date] = t.Date; tempRow[targetBuilder.ReadPlanID] = t.ReadPlanID.ToString(); tempRow[targetBuilder.Other] = t.Other; tempRow[targetBuilder.BookName] = m_TempParams[t.ReadPlanID.ToString()]; tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; }