Esempio n. 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, ContactsBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("contactid", entity.contactid);
     row.SetField("contactsRowID", entity.rowID.ToByteArray());
     row.SetField("rowpointer", entity.rowpointer);
 }
Esempio n. 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromContactsBase(ref DataRow row, ContactsBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("contactid", entity.contactid);
     row.SetField("comment", entity.comment);
     row.SetField("cotitle", entity.cotitle);
     row.SetField("groupcd", entity.groupcd);
     row.SetField("firstnm", entity.firstnm);
     row.SetField("notesfl", entity.notesfl);
     row.SetField("priority", entity.priority);
     row.SetField("salutation", entity.salutation);
     row.SetField("lastnm", entity.lastnm);
     row.SetField("middlenm", entity.middlenm);
     row.SetField("contacttype", entity.contacttype);
     row.SetField("charuser1", entity.charuser1);
     row.SetField("charuser2", entity.charuser2);
     row.SetField("charuser3", entity.charuser3);
     row.SetField("charuser4", entity.charuser4);
     row.SetField("charuser5", entity.charuser5);
     row.SetField("charuser6", entity.charuser6);
     row.SetField("charuser7", entity.charuser7);
     row.SetField("charuser8", entity.charuser8);
     row.SetField("charuser9", entity.charuser9);
     row.SetField("charuser10", entity.charuser10);
     row.SetField("dateuser1", entity.dateuser1);
     row.SetField("dateuser2", entity.dateuser2);
     row.SetField("dateuser3", entity.dateuser3);
     row.SetField("dateuser4", entity.dateuser4);
     row.SetField("dateuser5", entity.dateuser5);
     row.SetField("loguser1", entity.loguser1);
     row.SetField("loguser2", entity.loguser2);
     row.SetField("loguser3", entity.loguser3);
     row.SetField("loguser4", entity.loguser4);
     row.SetField("loguser5", entity.loguser5);
     row.SetField("decuser1", entity.decuser1);
     row.SetField("decuser2", entity.decuser2);
     row.SetField("decuser3", entity.decuser3);
     row.SetField("decuser4", entity.decuser4);
     row.SetField("decuser5", entity.decuser5);
     row.SetField("intuser1", entity.intuser1);
     row.SetField("intuser2", entity.intuser2);
     row.SetField("intuser3", entity.intuser3);
     row.SetField("intuser4", entity.intuser4);
     row.SetField("intuser5", entity.intuser5);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("transproc", entity.transproc);
     row.SetField("operinit", entity.operinit);
     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("crmid", entity.crmid);
     row.SetField("cmprosno", entity.cmprosno);
     row.SetField("synccrmfl", entity.synccrmfl);
     row.SetField("langcd", entity.langcd);
     row.SetField("syncmddfl", entity.syncmddfl);
     row.SetField("rowpointer", entity.rowpointer);
     row.SetField("transdttmz", entity.transdttmz);
     row.SetField("contactsRowID", entity.rowID.ToByteArray());
 }