public virtual OracleTypes.IOracleCustomType CreateObject() { ComFlussoListType obj = new ComFlussoListType(); return(obj); }
public ComunicazioniType(Comunicazioni c) : base(c) { if (c == null || c.IsValid == false) { this.m_IsNull = true; return; } this.m_AZ_PROTIsNull = false; this.m_ID_COMIsNull = !c.IdComunicazione.HasValue; this.m_IN_OUTIsNull = (c.TipoCom == TipoComunicazione.UNKNOWN); this.m_REF_ID_SOTTOTITOLOIsNull = !c.RefIdSottotitolo.HasValue; this.m_FLG_NOTIFICA = Convert.ToInt32(c.IsToNotify).ToString(); ComFlussoListType cl; if (c.ComFlussi == null) { cl = ComFlussoListType.Null; } else { cl = new ComFlussoListType(); var fl = c.ComFlussi.SelectMany(f => f.Value); if (fl.Count() > 0) { cl.ComFlusso = fl.Select(f => (ComFlussoType)f).ToArray(); } } this.m_COM_FLUSSI = cl; ComFlussoListType clProt; if (c.ComFlussiProtocollo == null) { clProt = ComFlussoListType.Null; } else { clProt = new ComFlussoListType(); if (c.ComFlussiProtocollo.Count > 0) { clProt.ComFlusso = c.ComFlussiProtocollo.Select(cfp => (ComFlussoType)cfp).ToArray(); } } this.m_COM_FLUSSI_PROT = clProt; ComAllegatoListType cal; if (c.ComAllegati == null) { cal = ComAllegatoListType.Null; } else { cal = new ComAllegatoListType(); cal.ComAllegati = c.ComAllegati.Select(ca => new ComAllegatoType(ca)).ToArray(); } this.m_COM_ALLEGATI = cal; MailContentType mc; if (c.MailComunicazione == null) { mc = MailContentType.Null; } else { mc = new MailContentType(c.MailComunicazione); } this.m_MAIL_COM = mc; this.m_AZ_PROT = Convert.ToInt32(c.DaProtocollare); this.m_IN_OUT = (int)c.TipoCom; }