/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromItemaltwhsecriteria(ref DataRow row, Itemaltwhsecriteria entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("abs_num", entity.absNum); row.SetField("itemaltwhsecriteriauserfield", entity.itemaltwhsecriteriauserfield); row.SetField("userfield", entity.userfield); }
public static Itemaltwhsecriteria BuildItemaltwhsecriteriaFromRow(DataRow row) { Itemaltwhsecriteria entity = new Itemaltwhsecriteria(); entity.coNum = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num"); entity.whNum = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num"); entity.absNum = row.IsNull("abs_num") ? string.Empty : row.Field <string>("abs_num"); entity.itemaltwhsecriteriauserfield = row.IsNull("itemaltwhsecriteriauserfield") ? string.Empty : row.Field <string>("itemaltwhsecriteriauserfield"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }