/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromVaesdetail(ref DataRow row, Vaesdetail entity) { row.SetField("vano", entity.vano); row.SetField("vasuf", entity.vasuf); row.SetField("seqno", entity.seqno); row.SetField("whse", entity.whse); row.SetField("userfield", entity.userfield); }
public static Vaesdetail BuildVaesdetailFromRow(DataRow row) { Vaesdetail entity = new Vaesdetail(); entity.vano = row.IsNull("vano") ? 0 : row.Field <int>("vano"); entity.vasuf = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf"); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }