예제 #1
0
        /// <summary>
        /// Update into XMClaimInfoPicture
        /// </summary>
        /// <param name="xmclaiminfopicture">XMClaimInfoPicture</param>
        public void UpdateXMClaimInfoPicture(XMClaimInfoPicture xmclaiminfopicture)
        {
            if (xmclaiminfopicture == null)
            {
                return;
            }

            if (this._context.IsAttached(xmclaiminfopicture))
            {
                this._context.XMClaimInfoPictures.Attach(xmclaiminfopicture);
            }

            this._context.SaveChanges();
        }
예제 #2
0
        /// <summary>
        /// Insert into XMClaimInfoPicture
        /// </summary>
        /// <param name="xmclaiminfopicture">XMClaimInfoPicture</param>
        public void InsertXMClaimInfoPicture(XMClaimInfoPicture xmclaiminfopicture)
        {
            if (xmclaiminfopicture == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmclaiminfopicture))
            {
                this._context.XMClaimInfoPictures.AddObject(xmclaiminfopicture);
            }

            this._context.SaveChanges();
        }