/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromApeceserialresult(ref DataRow row, Apeceserialresult entity) { row.SetField("cComment", entity.cComment); row.SetField("cSerialNo", entity.cSerialNo); row.SetField("apeis-recid", entity.apeisRecid); row.SetField("userfield", entity.userfield); }
public static Apeceserialresult BuildApeceserialresultFromRow(DataRow row) { Apeceserialresult entity = new Apeceserialresult(); entity.cComment = row.IsNull("cComment") ? string.Empty : row.Field <string>("cComment"); entity.cSerialNo = row.IsNull("cSerialNo") ? string.Empty : row.Field <string>("cSerialNo"); entity.apeisRecid = row.IsNull("apeis-recid") ? 0 : row.Field <long>("apeis-recid"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }