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

            if (this._context.IsAttached(xminvoiceinfo))
            {
                this._context.XMInvoiceInfoes.Attach(xminvoiceinfo);
            }

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

            if (!this._context.IsAttached(xminvoiceinfo))
            {
                this._context.XMInvoiceInfoes.AddObject(xminvoiceinfo);
            }

            this._context.SaveChanges();
        }