Beispiel #1
0
        /// <summary>
        /// Update into XMConsultationDetails
        /// </summary>
        /// <param name="xmconsultationdetails">XMConsultationDetails</param>
        public void UpdateXMConsultationDetails(XMConsultationDetails xmconsultationdetails)
        {
            if (xmconsultationdetails == null)
            {
                return;
            }

            if (this._context.IsAttached(xmconsultationdetails))
            {
                this._context.XMConsultationDetails.Attach(xmconsultationdetails);
            }

            this._context.SaveChanges();
        }
Beispiel #2
0
        /// <summary>
        /// Insert into XMConsultationDetails
        /// </summary>
        /// <param name="xmconsultationdetails">XMConsultationDetails</param>
        public void InsertXMConsultationDetails(XMConsultationDetails xmconsultationdetails)
        {
            if (xmconsultationdetails == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmconsultationdetails))
            {
                this._context.XMConsultationDetails.AddObject(xmconsultationdetails);
            }

            this._context.SaveChanges();
        }