public ICollection <ContactsApplicationMapping> FindByIdContact(long idContact) { using (IContactsApplicationMappingDao dao = getDaoContext().DaoImpl.ContactsApplicationMappingDao) { return(dao.GetContactsByIdContact(idContact)); } }
public void SetContattoAsDefault(long idTitolo, long idEntita, long idContatto) { using (IContactsApplicationMappingDao dao = getDaoContext().DaoImpl.ContactsApplicationMappingDao) { dao.setDefaultContact(idTitolo, idEntita, idContatto); } }
public ICollection <ContactsApplicationMapping> FindByBackendCodeAndCodComunicazione(IEnumerable <string> codes, string codCom) { using (IContactsApplicationMappingDao dao = getDaoContext().DaoImpl.ContactsApplicationMappingDao) { return(dao.FindByBackendCodeAndCodComunicazione(codes, codCom)); } }
public ICollection <ContactsApplicationMapping> FindByDatiGenerici(ContactsApplicationMapping contact) { List <ContactsApplicationMapping> listContacts = null; using (IContactsApplicationMappingDao dao = getDaoContext().DaoImpl.ContactsApplicationMappingDao) { listContacts = (List <ContactsApplicationMapping>)dao.GetContactsByCriteria(BuildQueryByData(contact)); } return(listContacts); }
public void UpdateContattoAppMappings(RubricaContatti cont) { IContactsApplicationMappingDao dao1 = getDaoContext().DaoImpl.ContactsApplicationMappingDao; long refOrg = default(long); if (cont.Entita == null) { refOrg = cont.RefIdReferral ?? default(long); } else { refOrg = cont.Entita.RefOrg ?? cont.Entita.IdReferral.Value; } dao1.setDefaultContact(cont.T_MappedAppID, refOrg, cont.IdContact.Value); }
public ICollection <ContactsApplicationMapping> FindByDatiGenerici(ICollection <ContactsApplicationMapping> contacts) { List <ContactsApplicationMapping> listContacts = new List <ContactsApplicationMapping>(); using (IContactsApplicationMappingDao dao = getDaoContext().DaoImpl.ContactsApplicationMappingDao) { foreach (ContactsApplicationMapping m in contacts) { ICollection <ContactsApplicationMapping> cm = dao.GetContactsByCriteria(BuildQueryByData(m)); if (cm != null) { listContacts.AddRange(cm); } } } if (listContacts.Count == 0) { listContacts = null; } return(listContacts); }