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

            if (this._context.IsAttached(xmothercostdetail))
            {
                this._context.XMOtherCostDetails.Attach(xmothercostdetail);
            }

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

            if (!this._context.IsAttached(xmothercostdetail))
            {
                this._context.XMOtherCostDetails.AddObject(xmothercostdetail);
            }

            this._context.SaveChanges();
        }