Exemple #1
0
        /// <summary>
        /// Update into XMAfterSalesData
        /// </summary>
        /// <param name="xmaftersalesdata">XMAfterSalesData</param>
        public void UpdateXMAfterSalesData(XMAfterSalesData xmaftersalesdata)
        {
            if (xmaftersalesdata == null)
            {
                return;
            }

            if (this._context.IsAttached(xmaftersalesdata))
            {
                this._context.XMAfterSalesDatas.Attach(xmaftersalesdata);
            }

            this._context.SaveChanges();
        }
Exemple #2
0
        /// <summary>
        /// Insert into XMAfterSalesData
        /// </summary>
        /// <param name="xmaftersalesdata">XMAfterSalesData</param>
        public void InsertXMAfterSalesData(XMAfterSalesData xmaftersalesdata)
        {
            if (xmaftersalesdata == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmaftersalesdata))
            {
                this._context.XMAfterSalesDatas.AddObject(xmaftersalesdata);
            }

            this._context.SaveChanges();
        }