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

            if (this._context.IsAttached(xminventorybarcodedetail))
            {
                this._context.XMInventoryBarcodeDetails.Attach(xminventorybarcodedetail);
            }

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

            if (!this._context.IsAttached(xminventorybarcodedetail))
            {
                this._context.XMInventoryBarcodeDetails.AddObject(xminventorybarcodedetail);
            }

            this._context.SaveChanges();
        }