/// <summary>
        /// Update into XMCommunicationRecord
        /// </summary>
        /// <param name="xmcommunicationrecord">XMCommunicationRecord</param>
        public void UpdateXMCommunicationRecord(XMCommunicationRecord xmcommunicationrecord)
        {
            if (xmcommunicationrecord == null)
            {
                return;
            }

            if (this._context.IsAttached(xmcommunicationrecord))
            {
                this._context.XMCommunicationRecords.Attach(xmcommunicationrecord);
            }

            this._context.SaveChanges();
        }
        /// <summary>
        /// Insert into XMCommunicationRecord
        /// </summary>
        /// <param name="xmcommunicationrecord">XMCommunicationRecord</param>
        public void InsertXMCommunicationRecord(XMCommunicationRecord xmcommunicationrecord)
        {
            if (xmcommunicationrecord == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmcommunicationrecord))
            {
                this._context.XMCommunicationRecords.AddObject(xmcommunicationrecord);
            }

            this._context.SaveChanges();
        }