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

            if (this._context.IsAttached(xmclaiminfoproductdetails))
            {
                this._context.XMClaimInfoProductDetails.Attach(xmclaiminfoproductdetails);
            }

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

            if (!this._context.IsAttached(xmclaiminfoproductdetails))
            {
                this._context.XMClaimInfoProductDetails.AddObject(xmclaiminfoproductdetails);
            }

            this._context.SaveChanges();
        }