/// <summary> /// Update into XMConsultation /// </summary> /// <param name="xmconsultation">XMConsultation</param> public void UpdateXMConsultation(XMConsultation xmconsultation) { if (xmconsultation == null) { return; } if (this._context.IsAttached(xmconsultation)) { this._context.XMConsultations.Attach(xmconsultation); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMConsultation /// </summary> /// <param name="xmconsultation">XMConsultation</param> public void InsertXMConsultation(XMConsultation xmconsultation) { if (xmconsultation == null) { return; } if (!this._context.IsAttached(xmconsultation)) { this._context.XMConsultations.AddObject(xmconsultation); } this._context.SaveChanges(); }