Example #1
0
        /// <summary>
        /// Update into XMNickCostDetail
        /// </summary>
        /// <param name="xmnickcostdetail">XMNickCostDetail</param>
        public void UpdateXMNickCostDetail(XMNickCostDetail xmnickcostdetail)
        {
            if (xmnickcostdetail == null)
            {
                return;
            }

            if (this._context.IsAttached(xmnickcostdetail))
            {
                this._context.XMNickCostDetails.Attach(xmnickcostdetail);
            }

            this._context.SaveChanges();
        }
Example #2
0
        /// <summary>
        /// Insert into XMNickCostDetail
        /// </summary>
        /// <param name="xmnickcostdetail">XMNickCostDetail</param>
        public void InsertXMNickCostDetail(XMNickCostDetail xmnickcostdetail)
        {
            if (xmnickcostdetail == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmnickcostdetail))
            {
                this._context.XMNickCostDetails.AddObject(xmnickcostdetail);
            }

            this._context.SaveChanges();
        }