public MailContentType(MailContent m) : base(m) { if (m == null || m.IsValid == false) { this.m_IsNull = true; return; } this.m_ID_MAILIsNull = !m.IdMail.HasValue; this.m_FOLLOWSIsNull = !m.Follows.HasValue; this.m_REF_ID_COMIsNull = !m.RefIdComunicazione.HasValue; this.m_FLG_ANNULLAMENTO = Convert.ToInt32(m.IsCancelled).ToString(); this.m_FLG_CUSTOM_REFS = Convert.ToInt32(m.HasCustomRefs).ToString(); if (m.MailRefs == null) { this.m_MAIL_REFS = MailRefsListType.Null; } else { this.m_MAIL_REFS = new MailRefsListType(); this.m_MAIL_REFS.MailRefs = m.MailRefs.Select(mr => (MailRefsType)mr).ToArray(); } }
public virtual OracleTypes.IOracleCustomType CreateObject() { MailRefsListType obj = new MailRefsListType(); return(obj); }