/// <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(); }
/// <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(); }