Пример #1
0
        /// <summary>
        /// Update into XMProjectCostDetail
        /// </summary>
        /// <param name="xmprojectcostdetail">XMProjectCostDetail</param>
        public void UpdateXMProjectCostDetail(XMProjectCostDetail xmprojectcostdetail)
        {
            if (xmprojectcostdetail == null)
            {
                return;
            }

            if (this._context.IsAttached(xmprojectcostdetail))
            {
                this._context.XMProjectCostDetails.Attach(xmprojectcostdetail);
            }

            this._context.SaveChanges();
        }
Пример #2
0
        /// <summary>
        /// Insert into XMProjectCostDetail
        /// </summary>
        /// <param name="xmprojectcostdetail">XMProjectCostDetail</param>
        public void InsertXMProjectCostDetail(XMProjectCostDetail xmprojectcostdetail)
        {
            if (xmprojectcostdetail == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmprojectcostdetail))
            {
                this._context.XMProjectCostDetails.AddObject(xmprojectcostdetail);
            }

            this._context.SaveChanges();
        }