/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromLoadwtquickviewtiesresults(ref DataRow row, Loadwtquickviewtiesresults entity) { row.SetField("ordertype", entity.ordertype); row.SetField("orderaltno", entity.orderaltno); row.SetField("orderaltsuf", entity.orderaltsuf); row.SetField("linealtno", entity.linealtno); row.SetField("seqaltno", entity.seqaltno); row.SetField("transtype", entity.transtype); row.SetField("customerwhse", entity.customerwhse); row.SetField("operinit", entity.operinit); row.SetField("transdttm", entity.transdttm); row.SetField("seqno", entity.seqno); }
public static Loadwtquickviewtiesresults BuildLoadwtquickviewtiesresultsFromRow(DataRow row) { Loadwtquickviewtiesresults entity = new Loadwtquickviewtiesresults(); entity.ordertype = row.IsNull("ordertype") ? string.Empty : row.Field <string>("ordertype"); entity.orderaltno = row.IsNull("orderaltno") ? 0 : row.Field <int>("orderaltno"); entity.orderaltsuf = row.IsNull("orderaltsuf") ? 0 : row.Field <int>("orderaltsuf"); entity.linealtno = row.IsNull("linealtno") ? 0 : row.Field <int>("linealtno"); entity.seqaltno = row.IsNull("seqaltno") ? 0 : row.Field <int>("seqaltno"); entity.transtype = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype"); entity.customerwhse = row.IsNull("customerwhse") ? string.Empty : row.Field <string>("customerwhse"); entity.operinit = row.IsNull("operinit") ? string.Empty : row.Field <string>("operinit"); entity.transdttm = row.IsNull("transdttm") ? string.Empty : row.Field <string>("transdttm"); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); return(entity); }