Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVendaddrBase(ref DataRow row, VendaddrBase entity)
 {
     row.SetField("vend_addr_num", entity.vendAddrNum);
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("vendor_id", entity.vendorId);
     row.SetField("addr_seq", entity.addrSeq);
     row.SetField("addr1", entity.addr1);
     row.SetField("addr2", entity.addr2);
     row.SetField("city", entity.city);
     row.SetField("state", entity.state);
     row.SetField("zip", entity.zip);
     row.SetField("country", entity.country);
     row.SetField("contact_name", entity.contactName);
     row.SetField("phone_number", entity.phoneNumber);
     row.SetField("fax_number", entity.faxNumber);
     row.SetField("edi_code", entity.ediCode);
     row.SetField("duns_number", entity.dunsNumber);
     row.SetField("custom_data1", entity.customData1);
     row.SetField("custom_data2", entity.customData2);
     row.SetField("custom_data3", entity.customData3);
     row.SetField("custom_data4", entity.customData4);
     row.SetField("custom_data5", entity.customData5);
     row.SetField("row_status", entity.rowStatus);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("addr_ext1", entity.addrExt1);
     row.SetField("addr_ext2", entity.addrExt2);
     row.SetField("addr_ext3", entity.addrExt3);
     row.SetField("rowpointer", entity.rowpointer);
     row.SetField("transdttmz", entity.transdttmz);
     row.SetField("vendaddrRowID", entity.rowID.ToByteArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, VendaddrBase entity)
 {
     row.SetField("vendAddrNum", entity.vendAddrNum);
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("vendorId", entity.vendorId);
     row.SetField("vendaddrRowID", entity.rowID.ToByteArray());
     row.SetField("rowpointer", entity.rowpointer);
 }