/// <summary>
        /// Insert into XMClaimReason
        /// </summary>
        /// <param name="xmclaimreason">XMClaimReason</param>
        public void InsertXMClaimReason(XMClaimReason xmclaimreason)
        {
            if (xmclaimreason == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmclaimreason))
            {
                this._context.XMClaimReasons.AddObject(xmclaimreason);
            }

            this._context.SaveChanges();
        }
        /// <summary>
        /// Update into XMClaimReason
        /// </summary>
        /// <param name="xmclaimreason">XMClaimReason</param>
        public void UpdateXMClaimReason(XMClaimReason xmclaimreason)
        {
            if (xmclaimreason == null)
            {
                return;
            }

            if (this._context.IsAttached(xmclaimreason))
            {
                this._context.XMClaimReasons.Attach(xmclaimreason);
            }

            this._context.SaveChanges();
        }
        public XMClaimReason getSingle(Expression <Func <XMClaimReason, bool> > predicate)
        {
            XMClaimReason entity = _context.XMClaimReasons.FirstOrDefault(predicate);

            return(entity);
        }