示例#1
0
        /// <summary>
        /// Update into XMClaimForm
        /// </summary>
        /// <param name="xmclaimform">XMClaimForm</param>
        public void UpdateXMClaimForm(XMClaimForm xmclaimform)
        {
            if (xmclaimform == null)
            {
                return;
            }

            if (this._context.IsAttached(xmclaimform))
            {
                this._context.XMClaimForms.Attach(xmclaimform);
            }

            this._context.SaveChanges();
        }
示例#2
0
        /// <summary>
        /// Insert into XMClaimForm
        /// </summary>
        /// <param name="xmclaimform">XMClaimForm</param>
        public void InsertXMClaimForm(XMClaimForm xmclaimform)
        {
            if (xmclaimform == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmclaimform))
            {
                this._context.XMClaimForms.AddObject(xmclaimform);
            }

            this._context.SaveChanges();
        }