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

            if (this._context.IsAttached(xmallocateproductdetails))
            {
                this._context.XMAllocateProductDetails.Attach(xmallocateproductdetails);
            }

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

            if (!this._context.IsAttached(xmallocateproductdetails))
            {
                this._context.XMAllocateProductDetails.AddObject(xmallocateproductdetails);
            }

            this._context.SaveChanges();
        }