/// <summary> /// Update into XMProductionOrderDetails /// </summary> /// <param name="xmproductionorderdetails">XMProductionOrderDetails</param> public void UpdateXMProductionOrderDetails(XMProductionOrderDetails xmproductionorderdetails) { if (xmproductionorderdetails == null) { return; } if (this._context.IsAttached(xmproductionorderdetails)) { this._context.XMProductionOrderDetails.Attach(xmproductionorderdetails); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMProductionOrderDetails /// </summary> /// <param name="xmproductionorderdetails">XMProductionOrderDetails</param> public void InsertXMProductionOrderDetails(XMProductionOrderDetails xmproductionorderdetails) { if (xmproductionorderdetails == null) { return; } if (!this._context.IsAttached(xmproductionorderdetails)) { this._context.XMProductionOrderDetails.AddObject(xmproductionorderdetails); } this._context.SaveChanges(); }