/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromApeiinvdetfinalupdt(ref DataRow row, Apeiinvdetfinalupdt entity) { row.SetField("jrnlno", entity.jrnlno); row.SetField("validateonlyfl", entity.validateonlyfl); row.SetField("postdt", entity.postdt); row.SetField("period", entity.period); row.SetField("updatefilesfl", entity.updatefilesfl); row.SetField("invoicedt", entity.invoicedt); row.SetField("receiveopofl", entity.receiveopofl); row.SetField("receivebofillprinter", entity.receivebofillprinter); row.SetField("receivecosttype", entity.receivecosttype); row.SetField("ovrqtytolerancefl", entity.ovrqtytolerancefl); row.SetField("ovrlineamttolerancefl", entity.ovrlineamttolerancefl); row.SetField("ovrinvamttolerancefl", entity.ovrinvamttolerancefl); row.SetField("ovrproofoobfl", entity.ovrproofoobfl); row.SetField("glvarianceacct", entity.glvarianceacct); row.SetField("adjinvtotfl", entity.adjinvtotfl); row.SetField("warncriticalfl", entity.warncriticalfl); row.SetField("userfield", entity.userfield); }
public static Apeiinvdetfinalupdt BuildApeiinvdetfinalupdtFromRow(DataRow row) { Apeiinvdetfinalupdt entity = new Apeiinvdetfinalupdt(); entity.jrnlno = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno"); entity.validateonlyfl = row.Field <bool>("validateonlyfl"); entity.postdt = row.Field <DateTime?>("postdt"); entity.period = row.IsNull("period") ? string.Empty : row.Field <string>("period"); entity.updatefilesfl = row.Field <bool>("updatefilesfl"); entity.invoicedt = row.Field <DateTime?>("invoicedt"); entity.receiveopofl = row.Field <bool>("receiveopofl"); entity.receivebofillprinter = row.IsNull("receivebofillprinter") ? string.Empty : row.Field <string>("receivebofillprinter"); entity.receivecosttype = row.IsNull("receivecosttype") ? string.Empty : row.Field <string>("receivecosttype"); entity.ovrqtytolerancefl = row.Field <bool>("ovrqtytolerancefl"); entity.ovrlineamttolerancefl = row.Field <bool>("ovrlineamttolerancefl"); entity.ovrinvamttolerancefl = row.Field <bool>("ovrinvamttolerancefl"); entity.ovrproofoobfl = row.Field <bool>("ovrproofoobfl"); entity.glvarianceacct = row.IsNull("glvarianceacct") ? string.Empty : row.Field <string>("glvarianceacct"); entity.adjinvtotfl = row.Field <bool>("adjinvtotfl"); entity.warncriticalfl = row.Field <bool>("warncriticalfl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }