/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPdsrBase(ref DataRow row, PdsrBase entity) { row.SetField("cono", entity.cono); row.SetField("levelkey", entity.levelkey); row.SetField("custno", entity.custno); row.SetField("rebatecostty", entity.rebatecostty); row.SetField("rebateamt", entity.rebateamt); row.SetField("sharefl", entity.sharefl); row.SetField("sharepct", entity.sharepct); row.SetField("capsellamount", entity.capsellamount); row.SetField("capselltypefl", entity.capselltypefl); row.SetField("manualfl", entity.manualfl); row.SetField("contractlineno", entity.contractlineno); row.SetField("operinit", entity.operinit); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("startdt", entity.startdt); row.SetField("enddt", entity.enddt); row.SetField("rebrecno", entity.rebrecno); row.SetField("refer", entity.refer); row.SetField("vendno", entity.vendno); row.SetField("pricesheet", entity.pricesheet); row.SetField("whse", entity.whse); row.SetField("codeid", entity.codeid); row.SetField("levelcd", entity.levelcd); row.SetField("priceeffectivedate", entity.priceeffectivedate); row.SetField("user1", entity.user1); row.SetField("user2", entity.user2); row.SetField("user3", entity.user3); row.SetField("user4", entity.user4); row.SetField("user5", entity.user5); row.SetField("user6", entity.user6); row.SetField("user7", entity.user7); row.SetField("user8", entity.user8); row.SetField("user9", entity.user9); row.SetField("dropshipty", entity.dropshipty); row.SetField("rebsubty", entity.rebsubty); row.SetField("contractno", entity.contractno); row.SetField("shipto", entity.shipto); row.SetField("rebcalcty", entity.rebcalcty); row.SetField("custrebty", entity.custrebty); row.SetField("rebatepct", entity.rebatepct); row.SetField("rebatecd", entity.rebatecd); row.SetField("rebdowntoty", entity.rebdowntoty); row.SetField("caprebfl", entity.caprebfl); row.SetField("margincostty", entity.margincostty); row.SetField("transproc", entity.transproc); row.SetField("priceeffectivedateto", entity.priceeffectivedateto); row.SetField("pricesheetto", entity.pricesheetto); row.SetField("contractcostfl", entity.contractcostfl); row.SetField("pdsrRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, PdsrBase entity) { row.SetField("cono", entity.cono); row.SetField("levelkey", entity.levelkey); row.SetField("custno", entity.custno); row.SetField("startdt", entity.startdt); row.SetField("vendno", entity.vendno); row.SetField("whse", entity.whse); row.SetField("codeid", entity.codeid); row.SetField("rebsubty", entity.rebsubty); row.SetField("shipto", entity.shipto); row.SetField("custrebty", entity.custrebty); row.SetField("pdsrRowID", entity.rowID.ToByteArray()); }