/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromAltloclistcriteria(ref DataRow row, Altloclistcriteria entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("bin_num", entity.binNum); row.SetField("wh_zone", entity.whZone); row.SetField("altloclistuserfield", entity.altloclistuserfield); row.SetField("userfield", entity.userfield); }
public static Altloclistcriteria BuildAltloclistcriteriaFromRow(DataRow row) { Altloclistcriteria entity = new Altloclistcriteria(); 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.binNum = row.IsNull("bin_num") ? string.Empty : row.Field <string>("bin_num"); entity.whZone = row.IsNull("wh_zone") ? string.Empty : row.Field <string>("wh_zone"); entity.altloclistuserfield = row.IsNull("altloclistuserfield") ? string.Empty : row.Field <string>("altloclistuserfield"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }