/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, SlsnBase entity) { row.SetField("slsnRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSlsnBase(ref DataRow row, SlsnBase entity) { row.SetField("charactionty1", entity.charactionty1); row.SetField("charactionty2", entity.charactionty2); row.SetField("charactionty3", entity.charactionty3); row.SetField("charactionty4", entity.charactionty4); row.SetField("charactionty5", entity.charactionty5); row.SetField("charactionty6", entity.charactionty6); row.SetField("charfind1", entity.charfind1); row.SetField("charfind2", entity.charfind2); row.SetField("charfind3", entity.charfind3); row.SetField("charfind4", entity.charfind4); row.SetField("charfind5", entity.charfind5); row.SetField("charfind6", entity.charfind6); row.SetField("charfieldty1", entity.charfieldty1); row.SetField("charfieldty2", entity.charfieldty2); row.SetField("charfieldty3", entity.charfieldty3); row.SetField("charfieldty4", entity.charfieldty4); row.SetField("charfieldty5", entity.charfieldty5); row.SetField("charfieldty6", entity.charfieldty6); row.SetField("charrepl1", entity.charrepl1); row.SetField("charrepl2", entity.charrepl2); row.SetField("charrepl3", entity.charrepl3); row.SetField("charrepl4", entity.charrepl4); row.SetField("charrepl5", entity.charrepl5); row.SetField("charrepl6", entity.charrepl6); row.SetField("cono", entity.cono); row.SetField("descrip2txt", entity.descrip2txt); row.SetField("descrip2cd", entity.descrip2cd); row.SetField("icscfl", entity.icscfl); row.SetField("icspfl", entity.icspfl); row.SetField("icswfl", entity.icswfl); row.SetField("imptype", entity.imptype); row.SetField("linecd", entity.linecd); row.SetField("operinit", entity.operinit); row.SetField("priceonty", entity.priceonty); row.SetField("pricetype", entity.pricetype); row.SetField("prodcat", entity.prodcat); row.SetField("prodline", entity.prodline); row.SetField("prodpreffl", entity.prodpreffl); row.SetField("prodprefix", entity.prodprefix); row.SetField("prodsuffl", entity.prodsuffl); row.SetField("prodsuffix", entity.prodsuffix); row.SetField("slgroup", entity.slgroup); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("vendcd", entity.vendcd); row.SetField("vendno", entity.vendno); row.SetField("descrip1cd", entity.descrip1cd); row.SetField("descrip1txt", entity.descrip1txt); row.SetField("lookupcd", entity.lookupcd); row.SetField("lookuptxt", entity.lookuptxt); row.SetField("pgrpty", entity.pgrpty); row.SetField("pdspsty", entity.pdspsty); row.SetField("pdsvty", entity.pdsvty); row.SetField("pdscfl", entity.pdscfl); row.SetField("pcatlinecdfl", entity.pcatlinecdfl); 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("rebatety", entity.rebatety); row.SetField("rebsubty", entity.rebsubty); row.SetField("transproc", entity.transproc); row.SetField("descrip3txt", entity.descrip3txt); row.SetField("descrip3cd", entity.descrip3cd); row.SetField("slsnRowID", entity.rowID.ToByteArray()); }