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