/// <summary> /// Update into XMDSR /// </summary> /// <param name="xmdsr">XMDSR</param> public void UpdateXMDSR(XMDSR xmdsr) { if (xmdsr == null) { return; } if (this._context.IsAttached(xmdsr)) { this._context.XMDSRs.Attach(xmdsr); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMDSR /// </summary> /// <param name="xmdsr">XMDSR</param> public void InsertXMDSR(XMDSR xmdsr) { if (xmdsr == null) { return; } if (!this._context.IsAttached(xmdsr)) { this._context.XMDSRs.AddObject(xmdsr); } this._context.SaveChanges(); }