/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGetlabelprintcriteria(ref DataRow row, Getlabelprintcriteria entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("abs_num", entity.absNum); row.SetField("aisle", entity.aisle); row.SetField("bin_num", entity.binNum); row.SetField("pallet_id", entity.palletId); row.SetField("prod_grp", entity.prodGrp); row.SetField("wh_zone", entity.whZone); row.SetField("containerType", entity.containerType); row.SetField("userfield", entity.userfield); }
public static Getlabelprintcriteria BuildGetlabelprintcriteriaFromRow(DataRow row) { Getlabelprintcriteria entity = new Getlabelprintcriteria(); 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.aisle = row.IsNull("aisle") ? 0 : row.Field <int>("aisle"); entity.binNum = row.IsNull("bin_num") ? string.Empty : row.Field <string>("bin_num"); entity.palletId = row.IsNull("pallet_id") ? string.Empty : row.Field <string>("pallet_id"); entity.prodGrp = row.IsNull("prod_grp") ? string.Empty : row.Field <string>("prod_grp"); entity.whZone = row.IsNull("wh_zone") ? string.Empty : row.Field <string>("wh_zone"); entity.containerType = row.IsNull("containerType") ? 0 : row.Field <int>("containerType"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }