コード例 #1
0
        /// <summary>
        /// Update into XMOrderInfoPlanRecord
        /// </summary>
        /// <param name="xmorderinfoplanrecord">XMOrderInfoPlanRecord</param>
        public void UpdateXMOrderInfoPlanRecord(XMOrderInfoPlanRecord xmorderinfoplanrecord)
        {
            if (xmorderinfoplanrecord == null)
            {
                return;
            }

            if (this._context.IsAttached(xmorderinfoplanrecord))
            {
                this._context.XMOrderInfoPlanRecords.Attach(xmorderinfoplanrecord);
            }

            this._context.SaveChanges();
        }
コード例 #2
0
        /// <summary>
        /// Insert into XMOrderInfoPlanRecord
        /// </summary>
        /// <param name="xmorderinfoplanrecord">XMOrderInfoPlanRecord</param>
        public void InsertXMOrderInfoPlanRecord(XMOrderInfoPlanRecord xmorderinfoplanrecord)
        {
            if (xmorderinfoplanrecord == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmorderinfoplanrecord))
            {
                this._context.XMOrderInfoPlanRecords.AddObject(xmorderinfoplanrecord);
            }

            this._context.SaveChanges();
        }