/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromLoadserialshistttcriteria(ref DataRow row, Loadserialshistttcriteria entity) { row.SetField("prod", entity.prod); row.SetField("whse", entity.whse); row.SetField("serialno", entity.serialno); row.SetField("userfield", entity.userfield); }
public static Loadserialshistttcriteria BuildLoadserialshistttcriteriaFromRow(DataRow row) { Loadserialshistttcriteria entity = new Loadserialshistttcriteria(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.serialno = row.IsNull("serialno") ? string.Empty : row.Field <string>("serialno"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }