/// <summary> /// Update into XMScalping /// </summary> /// <param name="xmscalping">XMScalping</param> public void UpdateXMScalping(XMScalping xmscalping) { if (xmscalping == null) { return; } if (this._context.IsAttached(xmscalping)) { this._context.XMScalpings.Attach(xmscalping); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMScalping /// </summary> /// <param name="xmscalping">XMScalping</param> public void InsertXMScalping(XMScalping xmscalping) { if (xmscalping == null) { return; } if (!this._context.IsAttached(xmscalping)) { this._context.XMScalpings.AddObject(xmscalping); } this._context.SaveChanges(); }