/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromVaeipartialreceiptcriteria(ref DataRow row, Vaeipartialreceiptcriteria entity) { row.SetField("vano", entity.vano); row.SetField("vasuf", entity.vasuf); row.SetField("wlwhsechgfl", entity.wlwhsechgfl); row.SetField("laborcheckedfl", entity.laborcheckedfl); row.SetField("shipqty", entity.shipqty); row.SetField("createbofl", entity.createbofl); row.SetField("userfield", entity.userfield); }
public static Vaeipartialreceiptcriteria BuildVaeipartialreceiptcriteriaFromRow(DataRow row) { Vaeipartialreceiptcriteria entity = new Vaeipartialreceiptcriteria(); entity.vano = row.IsNull("vano") ? 0 : row.Field <int>("vano"); entity.vasuf = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf"); entity.wlwhsechgfl = row.Field <bool>("wlwhsechgfl"); entity.laborcheckedfl = row.Field <bool>("laborcheckedfl"); entity.shipqty = row.IsNull("shipqty") ? decimal.Zero : row.Field <decimal>("shipqty"); entity.createbofl = row.Field <bool>("createbofl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }