/// <summary> /// Update into XMZMDemand /// </summary> /// <param name="xmzmdemand">XMZMDemand</param> public void UpdateXMZMDemand(XMZMDemand xmzmdemand) { if (xmzmdemand == null) { return; } if (this._context.IsAttached(xmzmdemand)) { this._context.XMZMDemands.Attach(xmzmdemand); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMZMDemand /// </summary> /// <param name="xmzmdemand">XMZMDemand</param> public void InsertXMZMDemand(XMZMDemand xmzmdemand) { if (xmzmdemand == null) { return; } if (!this._context.IsAttached(xmzmdemand)) { this._context.XMZMDemands.AddObject(xmzmdemand); } this._context.SaveChanges(); }