/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcebbuildprodlistresults(ref DataRow row, Icebbuildprodlistresults entity) { row.SetField("prod", entity.prod); row.SetField("cDesc", entity.cDesc); row.SetField("binloc1", entity.binloc1); row.SetField("binloc2", entity.binloc2); row.SetField("cProdnotes", entity.cProdnotes); row.SetField("cMoreBins", entity.cMoreBins); row.SetField("brandcode", entity.brandcode); row.SetField("mfgprod", entity.mfgprod); row.SetField("vendprod", entity.vendprod); row.SetField("userfield", entity.userfield); }
public static Icebbuildprodlistresults BuildIcebbuildprodlistresultsFromRow(DataRow row) { Icebbuildprodlistresults entity = new Icebbuildprodlistresults(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.cDesc = row.IsNull("cDesc") ? string.Empty : row.Field <string>("cDesc"); entity.binloc1 = row.IsNull("binloc1") ? string.Empty : row.Field <string>("binloc1"); entity.binloc2 = row.IsNull("binloc2") ? string.Empty : row.Field <string>("binloc2"); entity.cProdnotes = row.IsNull("cProdnotes") ? string.Empty : row.Field <string>("cProdnotes"); entity.cMoreBins = row.IsNull("cMoreBins") ? string.Empty : row.Field <string>("cMoreBins"); entity.brandcode = row.IsNull("brandcode") ? string.Empty : row.Field <string>("brandcode"); entity.mfgprod = row.IsNull("mfgprod") ? string.Empty : row.Field <string>("mfgprod"); entity.vendprod = row.IsNull("vendprod") ? string.Empty : row.Field <string>("vendprod"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }