예제 #1
0
        /// <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();
        }
예제 #2
0
        /// <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();
        }