コード例 #1
0
        /// <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();
        }
コード例 #2
0
        /// <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();
        }