/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPoeidetailfinish(ref DataRow row, Poeidetailfinish entity) { row.SetField("stagecd", entity.stagecd); row.SetField("stagecdx", entity.stagecdx); row.SetField("statusinfo", entity.statusinfo); row.SetField("amounti", entity.amounti); row.SetField("batchdatcd", entity.batchdatcd); row.SetField("receiverfl", entity.receiverfl); row.SetField("userfield", entity.userfield); }
public static Poeidetailfinish BuildPoeidetailfinishFromRow(DataRow row) { Poeidetailfinish entity = new Poeidetailfinish(); entity.stagecd = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd"); entity.stagecdx = row.IsNull("stagecdx") ? string.Empty : row.Field <string>("stagecdx"); entity.statusinfo = row.IsNull("statusinfo") ? string.Empty : row.Field <string>("statusinfo"); entity.amounti = row.IsNull("amounti") ? 0 : row.Field <int>("amounti"); entity.batchdatcd = row.IsNull("batchdatcd") ? string.Empty : row.Field <string>("batchdatcd"); entity.receiverfl = row.Field <bool>("receiverfl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }