Exemplo n.º 1
0
        /// <summary>
        /// Update into XMAllocateProductBarCodeDetail
        /// </summary>
        /// <param name="xmallocateproductbarcodedetail">XMAllocateProductBarCodeDetail</param>
        public void UpdateXMAllocateProductBarCodeDetail(XMAllocateProductBarCodeDetail xmallocateproductbarcodedetail)
        {
            if (xmallocateproductbarcodedetail == null)
            {
                return;
            }

            if (this._context.IsAttached(xmallocateproductbarcodedetail))
            {
                this._context.XMAllocateProductBarCodeDetails.Attach(xmallocateproductbarcodedetail);
            }

            this._context.SaveChanges();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Insert into XMAllocateProductBarCodeDetail
        /// </summary>
        /// <param name="xmallocateproductbarcodedetail">XMAllocateProductBarCodeDetail</param>
        public void InsertXMAllocateProductBarCodeDetail(XMAllocateProductBarCodeDetail xmallocateproductbarcodedetail)
        {
            if (xmallocateproductbarcodedetail == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmallocateproductbarcodedetail))
            {
                this._context.XMAllocateProductBarCodeDetails.AddObject(xmallocateproductbarcodedetail);
            }

            this._context.SaveChanges();
        }