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

            if (this._context.IsAttached(xmsaledeliverybarcodedetail))
            {
                this._context.XMSaleDeliveryBarCodeDetails.Attach(xmsaledeliverybarcodedetail);
            }

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

            if (!this._context.IsAttached(xmsaledeliverybarcodedetail))
            {
                this._context.XMSaleDeliveryBarCodeDetails.AddObject(xmsaledeliverybarcodedetail);
            }

            this._context.SaveChanges();
        }