/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPoblanketcheckshipfmnocrit(ref DataRow row, Poblanketcheckshipfmnocrit entity) { row.SetField("pono", entity.pono); row.SetField("posuf", entity.posuf); row.SetField("vendno", entity.vendno); row.SetField("shipfmno", entity.shipfmno); row.SetField("customparam", entity.customparam); }
public static Poblanketcheckshipfmnocrit BuildPoblanketcheckshipfmnocritFromRow(DataRow row) { Poblanketcheckshipfmnocrit entity = new Poblanketcheckshipfmnocrit(); entity.pono = row.IsNull("pono") ? decimal.Zero : row.Field <decimal>("pono"); entity.posuf = row.IsNull("posuf") ? decimal.Zero : row.Field <decimal>("posuf"); entity.vendno = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno"); entity.shipfmno = row.IsNull("shipfmno") ? 0 : row.Field <int>("shipfmno"); entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam"); return(entity); }